From 693cb8b7c10e5bc72f9035d4ad92a45a45787231 Mon Sep 17 00:00:00 2001 From: gti Date: Mon, 28 Sep 2026 22:35:33 -0300 Subject: [PATCH] fix(tests): atualizar asserts para versao 1.3.15 e alembic head 0035 apos merge --- central/tests/test_health.py | 2 +- central/tests/test_mission_06_hygiene.py | 4 ++-- tests/test_release_candidate.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/central/tests/test_health.py b/central/tests/test_health.py index 53f08f4..75ca185 100644 --- a/central/tests/test_health.py +++ b/central/tests/test_health.py @@ -17,7 +17,7 @@ def test_health_is_unavailable_when_database_is_down(): def test_version_endpoint_reports_release_and_fiscal_versions(): body = TestClient(create_app(database_probe=lambda: True)).get("/version").json() - assert body["version"] == "1.3.14" and body["api_compat"] == "1.0" and body["engine_version"] and body["decision_version"] + assert body["version"] == "1.3.15" and body["api_compat"] == "1.0" and body["engine_version"] and body["decision_version"] def test_production_refuses_the_dev_token(monkeypatch): diff --git a/central/tests/test_mission_06_hygiene.py b/central/tests/test_mission_06_hygiene.py index 81143bd..6d5927e 100644 --- a/central/tests/test_mission_06_hygiene.py +++ b/central/tests/test_mission_06_hygiene.py @@ -8,11 +8,11 @@ ROOT = Path(__file__).resolve().parents[2] def test_alembic_master_head_is_single(): - """Garante que na branch master o alembic possui uma única head: 0034_reference_data_registry.""" + """Garante que na branch master o alembic possui uma única head: 0035_cfop_ippt_write_mode.""" cfg = Config(str(ROOT / "central" / "alembic.ini")) script = ScriptDirectory.from_config(cfg) heads = script.get_heads() - assert heads == ["0034_reference_data_registry"], f"Esperado head única 0034, obtido: {heads}" + assert heads == ["0035_cfop_ippt_write_mode"], f"Esperado head única 0035, obtido: {heads}" def test_feature_branch_migration_chains_to_0034(): diff --git a/tests/test_release_candidate.py b/tests/test_release_candidate.py index 54c66e0..f2533e0 100644 --- a/tests/test_release_candidate.py +++ b/tests/test_release_candidate.py @@ -18,7 +18,7 @@ def test_versions_are_coherent_across_hub_and_packages(): must be able to bump this without touching, rebuilding or republishing the Agent at all.""" from central.app.version import GTI_FISCAL_VERSION v = (ROOT / "release" / "VERSION").read_text(encoding="utf-8").strip() - assert v == GTI_FISCAL_VERSION == "1.3.14" + assert v == GTI_FISCAL_VERSION == "1.3.15" pep = v.replace("-rc", "rc") assert f'version = "{pep}"' in (ROOT / "central" / "pyproject.toml").read_text(encoding="utf-8") manifest = ROOT / "release" / "RELEASE_MANIFEST.json"