This commit is contained in:
Charlie Doern 2025-10-03 13:35:21 -04:00 committed by GitHub
commit 782b7f1352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 2052 additions and 1 deletions

5
tests/api/__init__.py Normal file
View file

@ -0,0 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

17
tests/api/test_models.py Normal file
View file

@ -0,0 +1,17 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import json
from llama_stack.core.datatypes import StackRunConfig
def test_run_config_v1_schema_is_unchanged(snapshot):
"""
Ensures the V1 schema never changes.
"""
schema = StackRunConfig.model_json_schema()
snapshot.assert_match(json.dumps(schema, indent=2), "stored_run_config_v1_schema.json")