chore: update backend tests
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
# #region Test.Models.Environment [C:2] [TYPE Module] [SEMANTICS test,environment,config,model]
|
||||
# @BRIEF Verify Environment config model stores and returns values correctly.
|
||||
# @RELATION BINDS_TO -> [Environment]
|
||||
# @TEST_EDGE: default_values -> Defaults are set correctly
|
||||
# @TEST_EDGE: missing_field -> Raises ValidationError for missing required field
|
||||
# @TEST_EDGE: invalid_type -> Raises ValidationError for wrong type
|
||||
from src.core.config_models import Environment
|
||||
from src.core.logger import belief_scope
|
||||
|
||||
|
||||
# #region test_environment_model [C:2] [TYPE Function]
|
||||
# @RELATION BINDS_TO -> Environment
|
||||
# @PURPOSE: Tests that Environment model correctly stores values.
|
||||
# @PRE: Environment class is available.
|
||||
# @POST: Values are verified.
|
||||
# @BRIEF Verify Environment model correctly stores and returns attribute values.
|
||||
def test_environment_model():
|
||||
with belief_scope("test_environment_model"):
|
||||
env = Environment(
|
||||
@@ -20,3 +23,4 @@ def test_environment_model():
|
||||
assert env.name == "test-env"
|
||||
assert env.url == "http://localhost:8088/api/v1"
|
||||
# #endregion test_environment_model
|
||||
# #endregion Test.Models.Environment
|
||||
|
||||
Reference in New Issue
Block a user