diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..4522608 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests +addopts = --cov=s2python --cov-report=html:./unit_test_coverage/ -v tests/unit/ diff --git a/src/s2python/generated/gen_s2.py b/src/s2python/generated/gen_s2.py index f09a9f6..22dd0f7 100644 --- a/src/s2python/generated/gen_s2.py +++ b/src/s2python/generated/gen_s2.py @@ -180,6 +180,7 @@ class NumberRange(BaseModel): class Transition(BaseModel): model_config = ConfigDict( extra="forbid", + populate_by_name=True ) id: ID = Field( ..., diff --git a/tests/unit/message_test.py b/tests/unit/message_test.py index f667306..1d3c4a9 100644 --- a/tests/unit/message_test.py +++ b/tests/unit/message_test.py @@ -61,3 +61,5 @@ def test_import_s2_messages__pebc(self): def test_import_s2_messages__ppbc(self): self._test_import_s2_messages("s2python.ppbc") + def test_import_s2_messages__ombc(self): + self._test_import_s2_messages("s2python.ombc")