mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 15:44:32 +00:00
support non value for test config
This commit is contained in:
parent
26d9804efd
commit
11b2fdd3d8
4 changed files with 15 additions and 9 deletions
|
|
@ -72,11 +72,15 @@ def pytest_generate_tests(metafunc):
|
|||
test_config = try_load_config_file_cached(metafunc.config.getoption("config"))
|
||||
provider_fixtures_config = (
|
||||
test_config.memory.fixtures.provider_fixtures
|
||||
if test_config is not None
|
||||
if test_config is not None and test_config.memory is not None
|
||||
else None
|
||||
)
|
||||
custom_fixtures = get_provider_fixtures_from_config(
|
||||
provider_fixtures_config, DEFAULT_PROVIDER_COMBINATIONS
|
||||
custom_fixtures = (
|
||||
get_provider_fixtures_from_config(
|
||||
provider_fixtures_config, DEFAULT_PROVIDER_COMBINATIONS
|
||||
)
|
||||
if provider_fixtures_config is not None
|
||||
else None
|
||||
)
|
||||
if "embedding_model" in metafunc.fixturenames:
|
||||
model = metafunc.config.getoption("--embedding-model")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue