Skip to content

Commit

Permalink
Configure nox tests session to use pytest config file #133
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Nov 8, 2024
1 parent 840d253 commit aea6b5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def safety(session):
def tests(session):
args = session.posargs
session.run("poetry", "install", "--with=dev", external=True)
session.run("pytest", *args)
session.run("pytest", "--config-file=test/pytest.ini", *args)
2 changes: 1 addition & 1 deletion test/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env =
AUTHENTICATION__JWT_ALGORITHM=RS256
AUTHENTICATION__ACCESS_TOKEN_VALIDITY_MINUTES=30
AUTHENTICATION__REFRESH_TOKEN_VALIDITY_DAYS=7
AUTHENTICATION__JWT_BLACKLIST=[]
AUTHENTICATION__JWT_REFRESH_TOKEN_BLACKLIST=[]
AUTHENTICATION__ADMIN_USERS=[]
MAINTENANCE__MAINTENANCE_PATH=./maintenance/maintenance.json
MAINTENANCE__SCHEDULED_MAINTENANCE_PATH=./maintenance/scheduled_maintenance.json
Expand Down

0 comments on commit aea6b5d

Please sign in to comment.