forked from phoenix-oss/llama-stack-mirror
Update client-sdk test config option handling
This commit is contained in:
parent
589a6911ba
commit
f0ba367877
2 changed files with 6 additions and 9 deletions
|
@ -52,6 +52,12 @@ def pytest_addoption(parser):
|
|||
default=VISION_MODEL,
|
||||
help="Specify the vision inference model to use for testing",
|
||||
)
|
||||
parser.addoption(
|
||||
"--safety-shield",
|
||||
action="store",
|
||||
default="meta-llama/Llama-Guard-3-1B",
|
||||
help="Specify the safety shield model to use for testing",
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
|
|
@ -5,15 +5,6 @@
|
|||
# the root directory of this source tree.
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption(
|
||||
"--safety-shield",
|
||||
action="store",
|
||||
default="meta-llama/Llama-Guard-3-1B",
|
||||
help="Specify the safety shield model to use for testing",
|
||||
)
|
||||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
if "llama_guard_text_shield_id" in metafunc.fixturenames:
|
||||
metafunc.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue