Skip to content

Commit d3acd85

Browse files
authored
fix(tests): load the test settings only when running tests
Previous implementation causes false positives with the last version of LlamaIndex
1 parent 0a89d76 commit d3acd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

private_gpt/settings/settings_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
_settings_folder = os.environ.get("PGPT_SETTINGS_FOLDER", PROJECT_ROOT_PATH)
1717

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

2121
active_profiles: list[str] = unique_list(
2222
["default"]

0 commit comments

Comments
 (0)