Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Nov 6, 2023
1 parent 04be4f0 commit dd72271
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bbconf/bbconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def select_unique(self, table_name: str, column: str = None) -> List[dict]:
f"Incorrect table name provided {table_name}"
)

return [i for n, i in enumerate(values) if i not in values[n + 1:]]
return [i for n, i in enumerate(values) if i not in values[n + 1 :]]

@property
def BedfileORM(self) -> SQLModel:
Expand Down
7 changes: 2 additions & 5 deletions tests/test_bbconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,9 @@ def test_select(self, cfg_pth, test_data_bed, test_data_bedset):
)

unique_bedfiles = bbc.select_unique(table_name="bedfile__sample")
assert unique_bedfiles[0].record_identifier == "bed1"
assert unique_bedfiles[0]["record_identifier"] == "bed1"
unique_bedsets = bbc.select_unique(table_name="bedsets__sample")
assert unique_bedsets[0].record_identifier == "bedset1"
results = bbc.select_bedfiles_for_bedset()
assert results is not None
assert unique_bedsets[0]["record_identifier"] == "bedset1"

def test_removal(self, cfg_pth, test_data_bed, test_data_bedset):
with ContextManagerDBTesting(DB_URL):
Expand Down Expand Up @@ -160,7 +158,6 @@ def test_select_bedfiles_from_bedset(self):
# TODO: add test
assert True


@pytest.mark.skipif(True, reason="not implemented")
def test_get_bed_drs_metadata(self):
# TODO: add test
Expand Down

0 comments on commit dd72271

Please sign in to comment.