Skip to content

Commit

Permalink
make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlvarezJarreta committed Oct 28, 2024
1 parent b74ba76 commit 893fb77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ensembl/utils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_method(..., test_dbs: dict[str, UnitTestDB], ...):
name = argument.get("name", None)
try:
key = name if name else src.name
except AttributeError:
raise TypeError("Expected at least 'src' or 'name' argument defined")
except AttributeError as exc:
raise TypeError("Expected at least 'src' or 'name' argument defined") from exc
databases[key] = db_factory(src=src, name=name, metadata=argument.get("metadata"))
return databases
1 change: 1 addition & 0 deletions tests/plugin/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@ def test_db_factory(
indirect=["test_dbs"],
)
def test_test_dbs(test_dbs: dict[str, UnitTestDB], expected_db_name: str) -> None:
"""Tests the `test_dbs` fixture."""
assert expected_db_name in test_dbs
assert test_dbs[expected_db_name].dbc is not None

0 comments on commit 893fb77

Please sign in to comment.