Skip to content

Commit

Permalink
conftest.py: fix linter error
Browse files Browse the repository at this point in the history
We're getting the following linter error:

tests/integration/conftest.py:468: error: Argument "resources" to
"refresh" of "Application" has incompatible type "dict[str, None]";
expected "dict[str, str] | None"  [arg-type]

We'll try to avoid it by replacing the None value with an empty string.
  • Loading branch information
petrutlucian94 committed Dec 2, 2024
1 parent fe27bf1 commit 1e944eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
log = logging.getLogger(__name__)
TEST_DATA = Path(__file__).parent / "data"
DEFAULT_SNAP_INSTALLATION = TEST_DATA / "default-snap-installation.tar.gz"
DEFAULT_RESOURCES = {"snap-installation": None}
DEFAULT_RESOURCES = {"snap-installation": ""}


def pytest_addoption(parser: pytest.Parser):
Expand Down

0 comments on commit 1e944eb

Please sign in to comment.