Skip to content

Commit

Permalink
test sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets committed Sep 5, 2024
1 parent 5524db4 commit 92aaec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion queue_services/auth-queue/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def db(app): # pylint: disable=redefined-outer-name, invalid-name
# This is the path we'll use in legal_api!!

# even though this isn't referenced directly, it sets up the internal configs that upgrade
import sys
import sys, os
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '.venv', 'src', 'sbc-auth', 'auth-api'))
if src_path not in sys.path:
sys.path.insert(0, src_path)
auth_api_folder = [folder for folder in sys.path if 'auth-api' in folder][0]
migration_path = auth_api_folder.replace('/auth-api/src', '/auth-api/migrations')

Expand Down

0 comments on commit 92aaec2

Please sign in to comment.