fix(tests): atualizar asserts para versao 1.3.15 e alembic head 0035 apos merge
This commit is contained in:
@@ -17,7 +17,7 @@ def test_health_is_unavailable_when_database_is_down():
|
|||||||
|
|
||||||
def test_version_endpoint_reports_release_and_fiscal_versions():
|
def test_version_endpoint_reports_release_and_fiscal_versions():
|
||||||
body = TestClient(create_app(database_probe=lambda: True)).get("/version").json()
|
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):
|
def test_production_refuses_the_dev_token(monkeypatch):
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ ROOT = Path(__file__).resolve().parents[2]
|
|||||||
|
|
||||||
|
|
||||||
def test_alembic_master_head_is_single():
|
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"))
|
cfg = Config(str(ROOT / "central" / "alembic.ini"))
|
||||||
script = ScriptDirectory.from_config(cfg)
|
script = ScriptDirectory.from_config(cfg)
|
||||||
heads = script.get_heads()
|
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():
|
def test_feature_branch_migration_chains_to_0034():
|
||||||
|
|||||||
@@ -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."""
|
must be able to bump this without touching, rebuilding or republishing the Agent at all."""
|
||||||
from central.app.version import GTI_FISCAL_VERSION
|
from central.app.version import GTI_FISCAL_VERSION
|
||||||
v = (ROOT / "release" / "VERSION").read_text(encoding="utf-8").strip()
|
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")
|
pep = v.replace("-rc", "rc")
|
||||||
assert f'version = "{pep}"' in (ROOT / "central" / "pyproject.toml").read_text(encoding="utf-8")
|
assert f'version = "{pep}"' in (ROOT / "central" / "pyproject.toml").read_text(encoding="utf-8")
|
||||||
manifest = ROOT / "release" / "RELEASE_MANIFEST.json"
|
manifest = ROOT / "release" / "RELEASE_MANIFEST.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user