mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
fix(tests): load the test settings only when running tests
Previous implementation causes false positives with the last version of LlamaIndex
This commit is contained in:
parent
0a89d76cc5
commit
d3acd85fe3
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
|
||||||
_settings_folder = os.environ.get("PGPT_SETTINGS_FOLDER", PROJECT_ROOT_PATH)
|
_settings_folder = os.environ.get("PGPT_SETTINGS_FOLDER", PROJECT_ROOT_PATH)
|
||||||
|
|
||||||
# if running in unittest, use the test profile
|
# 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(
|
active_profiles: list[str] = unique_list(
|
||||||
["default"]
|
["default"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue