Skip to content

Commit

Permalink
fixed pre-commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jstavel committed Jan 10, 2024
1 parent 1b87977 commit 23396bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytest_client_tools/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def pytest_runtest_logfinish(nodeid, location):

def pytest_runtest_setup(item):
envnames = [mark.args[0] for mark in item.iter_markers(name="env")]
the_environment = _settings.get('env_for_dynaconf') or "development"
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 23396bc

Please sign in to comment.