Skip to content

Commit

Permalink
fixed flake8 complains
Browse files Browse the repository at this point in the history
  • Loading branch information
jstavel committed Jan 10, 2024
1 parent d50fa06 commit 7e9456e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pytest_client_tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
settings_files=["settings.toml", ".secrets.toml"],
)


@pytest.fixture
def settings(scope="session"):
_settings.validators.register(
Expand Down
4 changes: 2 additions & 2 deletions pytest_client_tools/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def pytest_configure(config):
config.addinivalue_line("markers", "jira(id): test for jira cards")
config.addinivalue_line(
"markers",
"env(name): required environment for a test (it is a Dynaconf feature)"
"env(name): required environment for a test (it is a Dynaconf feature)",
)

locale.setlocale(locale.LC_ALL, "C.UTF-8")
Expand Down Expand Up @@ -270,5 +270,5 @@ def pytest_runtest_setup(item):
the_environment = _settings.get("env_for_dynaconf") or "development"
if envnames and the_environment not in envnames:
pytest.skip(
f"test requires a dynaconf environment to be one of those: {envnames}"
f"test requires a dynaconf environment to be one of those: {envnames}",
)

0 comments on commit 7e9456e

Please sign in to comment.