AURORA-1677: arm_statements 0.1.2
This commit is contained in:
parent
97896a4ec3
commit
a1b9cc1fdc
@ -40,10 +40,9 @@ no_implicit_reexport = true
|
|||||||
strict_equality = true
|
strict_equality = true
|
||||||
extra_checks = true
|
extra_checks = true
|
||||||
|
|
||||||
# Библиотека пока без py.typed: используем аннотации, ошибки её исходников проверяются в её репозитории.
|
# Типизированная библиотека: ошибки её исходников проверяются в её репозитории.
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
module = ["arm_statements", "arm_statements.*"]
|
module = ["arm_statements", "arm_statements.*"]
|
||||||
follow_untyped_imports = true
|
|
||||||
follow_imports = "silent"
|
follow_imports = "silent"
|
||||||
|
|
||||||
# Сторонние пакеты без типов (или недоступные вне банка)
|
# Сторонние пакеты без типов (или недоступные вне банка)
|
||||||
|
|||||||
@ -51,7 +51,7 @@ PyJWT[crypto]==2.8.0
|
|||||||
PyNaCl==1.5.0
|
PyNaCl==1.5.0
|
||||||
python-dotenv==1.2.2
|
python-dotenv==1.2.2
|
||||||
python-multipart==0.0.32
|
python-multipart==0.0.32
|
||||||
pylib_ai_arm_statements==0.1.1
|
pylib_ai_arm_statements==0.1.2
|
||||||
PyYAML==6.0.3
|
PyYAML==6.0.3
|
||||||
raisa_fastapi_protected_api==1.0.0
|
raisa_fastapi_protected_api==1.0.0
|
||||||
rich==15.0.0
|
rich==15.0.0
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
from importlib.metadata import version
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -146,9 +147,8 @@ def test_engine_scenario_recompute_after_edit() -> None:
|
|||||||
assert [(f.column_key, f.expected, f.actual) for f in failed] == [(key, Decimal(428471), Decimal(428461))]
|
assert [(f.column_key, f.expected, f.actual) for f in failed] == [(key, Decimal(428471), Decimal(428461))]
|
||||||
|
|
||||||
|
|
||||||
def test_engine_version_reads_file(tmp_path: Path) -> None:
|
def test_engine_version_reads_distribution() -> None:
|
||||||
assert ENGINE.version == statements_version()
|
assert ENGINE.version == statements_version() == version("pylib-ai-arm-statements")
|
||||||
assert statements_version(tmp_path / "VERSION") is None
|
|
||||||
|
|
||||||
|
|
||||||
def test_engine_rules_accessors() -> None:
|
def test_engine_rules_accessors() -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user