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.
def test_environment_model():
    with belief_scope("test_environment_model"):
        env = Environment(
            id="test-id",
            name="test-env",
            url="http://localhost:8088/api/v1",
            username="admin",
            password="password"
        )
        assert env.id == "test-id"
        assert env.name == "test-env"
        assert env.url == "http://localhost:8088/api/v1"
# #endregion test_environment_model
