Skip to content

Commit

Permalink
fix(tests): load the test settings only when running tests
Browse files Browse the repository at this point in the history
Previous implementation causes false positives with the last version of LlamaIndex
  • Loading branch information
imartinez committed Jan 9, 2024
1 parent 0a89d76 commit d3acd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private_gpt/settings/settings_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_settings_folder = os.environ.get("PGPT_SETTINGS_FOLDER", PROJECT_ROOT_PATH)

# if running in unittest, use the test profile
_test_profile = ["test"] if "unittest" in sys.modules else []
_test_profile = ["test"] if "tests.fixtures" in sys.modules else []

active_profiles: list[str] = unique_list(
["default"]
Expand Down

0 comments on commit d3acd85

Please sign in to comment.