Created
September 5, 2024 17:33
-
-
Save bomzheg/cd77c72ce849ef84af76b1492911422f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED [ 96%] | |
tests/unit/serialization/test_deserialize.py:24 (test_deserialize_game) | |
+ Exception Group Traceback (most recent call last): | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/runner.py", line 341, in from_call | |
| result: Optional[TResult] = func() | |
| ^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/runner.py", line 262, in <lambda> | |
| lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__ | |
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec | |
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_callers.py", line 182, in _multicall | |
| return outcome.get_result() | |
| ^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_result.py", line 100, in get_result | |
| raise exc.with_traceback(exc.__traceback__) | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall | |
| res = hook_impl.function(*args) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/runner.py", line 177, in pytest_runtest_call | |
| raise e | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
| item.runtest() | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/python.py", line 1792, in runtest | |
| self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__ | |
| return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec | |
| return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_callers.py", line 182, in _multicall | |
| return outcome.get_result() | |
| ^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_result.py", line 100, in get_result | |
| raise exc.with_traceback(exc.__traceback__) | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall | |
| res = hook_impl.function(*args) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
| result = testfunction(**testargs) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/tests/unit/serialization/test_deserialize.py", line 26, in test_deserialize_game | |
| game = parse_game(simple_scn, retort) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/shvatka/core/services/scenario/game_ops.py", line 10, in parse_game | |
| return retort.load(game.scn, scn.GameScenario) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/adaptix/_internal/morphing/facade/retort.py", line 291, in load | |
| return self.get_loader(tp)(data) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "<adaptix generated model_loader_GameScenario>", line 77, in model_loader_GameScenario | |
| raise AggregateLoadError( | |
| adaptix.load_error.AggregateLoadError: while loading model <class 'shvatka.core.models.dto.scn.game.GameScenario'> (1 sub-exception) | |
+-+---------------- 1 ---------------- | |
| Exception Group Traceback (most recent call last): | |
| File "<adaptix generated model_loader_GameScenario>", line 67, in model_loader_GameScenario | |
| f_levels = loader_levels(r_levels) | |
| ^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/adaptix/_internal/morphing/iterable_provider.py", line 179, in iter_loader_dt_sc | |
| return iter_factory(iter_mapper(value_iter)) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/adaptix/_internal/morphing/iterable_provider.py", line 132, in iter_loader_dt_all | |
| raise AggregateLoadError( | |
| adaptix.load_error.AggregateLoadError: while loading iterable <class 'list'> (2 sub-exceptions) | |
| Exception was caused at ['levels'] | |
+-+---------------- 1 ---------------- | |
| Exception Group Traceback (most recent call last): | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/adaptix/_internal/morphing/iterable_provider.py", line 117, in iter_loader_dt_all | |
| yield loader(el) | |
| ^^^^^^^^^^ | |
| File "<adaptix generated model_loader_LevelScenario>", line 101, in model_loader_LevelScenario | |
| raise AggregateLoadError( | |
| adaptix.load_error.AggregateLoadError: while loading model <class 'shvatka.core.models.dto.scn.level.LevelScenario'> (1 sub-exception) | |
| Exception was caused at [0] | |
+-+---------------- 1 ---------------- | |
| adaptix.load_error.NoRequiredFieldsLoadError: fields={'time_hints'}, input_value={'id': 'first', 'keys': ['SH123', 'SH321'], 'time-hints': [{'time': 0, 'hint': [{'type': 'text', 'text': 'загадка'}, {'type': 'text', 'text': '(сложная)'}]}, {'time': 1, 'hint': [{'type': 'text', 'text': 'подсказка'}]}, {'time': 2, 'hint': [{'type': 'gps', 'latitude': 55.579282598950165, 'longitude': 37.910306366539395}]}, {'time': 5, 'hint': [{'time': 'text', 'text': 'SH123\nSH321'}]}]} | |
+------------------------------------ | |
+---------------- 2 ---------------- | |
| Exception Group Traceback (most recent call last): | |
| File "/home/bomzheg/PycharmProjects/Shvatka/.venv/lib64/python3.11/site-packages/adaptix/_internal/morphing/iterable_provider.py", line 117, in iter_loader_dt_all | |
| yield loader(el) | |
| ^^^^^^^^^^ | |
| File "<adaptix generated model_loader_LevelScenario>", line 101, in model_loader_LevelScenario | |
| raise AggregateLoadError( | |
| adaptix.load_error.AggregateLoadError: while loading model <class 'shvatka.core.models.dto.scn.level.LevelScenario'> (1 sub-exception) | |
| Exception was caused at [1] | |
+-+---------------- 1 ---------------- | |
| adaptix.load_error.NoRequiredFieldsLoadError: fields={'time_hints'}, input_value={'id': 'second', 'keys': ['SHOOT'], 'time-hints': [{'time': 0, 'hint': [{'type': 'text', 'text': 'загадка'}, {'type': 'text', 'text': '(ну не очень сложная)'}]}, {'time': 1, 'hint': [{'type': 'text', 'text': 'подсказонька'}]}, {'time': 2, 'hint': [{'type': 'text', 'text': 'подсказка'}, {'type': 'text', 'text': '(простая)'}]}, {'time': 5, 'hint': [{'time': 'text', 'text': 'SHOOT'}]}]} | |
+------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment