Skip to content

Update to be bool #1456

Update to be bool

Update to be bool #1456

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Test Results failed Jul 29, 2023 in 0s

12 fail, 1 290 pass in 59m 12s

       12 files  ±0       12 suites  ±0   59m 12s ⏱️ - 10m 8s
  1 302 tests ±0  1 290 ✔️ ±0         0 💤 ±0  12 ±0 
10 388 runs  ±0  8 786 ✔️ ±0  1 566 💤 ±0  36 ±0 

Results for commit 9321afd. ± Comparison against earlier commit e25a866.

Annotations

Check warning on line 1 in mypy

See this annotation in the file changed.

@github-actions github-actions / Test Results

mypy-py3_9-linux (mypy) failed

artifacts/MyPy Test Results (Python 3.9)/mypy.xml [took 16s]
Raw output
mypy produced messages
skytemple_files/data/waza_p/_model.py:183:32: error: Incompatible types in assignment (expression has type "u8", variable has type "bool")  [assignment]
skytemple_files/data/waza_p/_model.py:212:24: error: Argument 2 to "write_u8" has incompatible type "bool"; expected "u8"  [arg-type]
skytemple_files/data/waza_p/handler.py:87:20: error: Incompatible return value type (got "type[WazaMove]", expected "type[WazaMoveProtocol[Any]]")  [return-value]

Check warning on line 1 in mypy

See this annotation in the file changed.

@github-actions github-actions / Test Results

mypy-py3_10-linux (mypy) failed

artifacts/MyPy Test Results (Python 3.10)/mypy.xml [took 11s]
Raw output
mypy produced messages
skytemple_files/data/waza_p/_model.py:183:32: error: Incompatible types in assignment (expression has type "u8", variable has type "bool")  [assignment]
skytemple_files/data/waza_p/_model.py:212:24: error: Argument 2 to "write_u8" has incompatible type "bool"; expected "u8"  [arg-type]
skytemple_files/data/waza_p/handler.py:87:20: error: Incompatible return value type (got "type[WazaMove]", expected "type[WazaMoveProtocol[Any]]")  [return-value]

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_cross_native_implementation (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 2s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 2s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 3s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 3s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_cross_native_implementation>

    def test_cross_native_implementation(self):
        """Tests the native implementation against the Python implementation."""
        if not env_use_native():
            self.skipTest(
                "This test is only enabled when the native implementations are tested."
            )
            return
        with open(self._fix_path(), 'rb') as f:
            sir0 = Sir0Handler.deserialize(f.read())
        loaded_py = self.handler.load_python_model().sir0_unwrap(sir0.content, sir0.data_pointer)
        loaded_rs = self.handler.load_native_model().sir0_unwrap(sir0.content, sir0.data_pointer)
    
        loaded_py_sir0 = Sir0Handler.wrap_obj(loaded_py)
        loaded_rs_sir0 = Sir0Handler.wrap_obj(loaded_rs)
        loaded_py_reloaded_with_rs: WazaPProtocol = self.handler.load_native_model().sir0_unwrap(  # type: ignore
            loaded_py_sir0.content, loaded_py_sir0.data_pointer
        )
        loaded_rs_reloaded_with_py: WazaPProtocol = self.handler.load_python_model().sir0_unwrap(  # type: ignore
            loaded_rs_sir0.content, loaded_rs_sir0.data_pointer
        )
    
>       self.assertTrue(eq_move_list(FIX_MOVES, loaded_py_reloaded_with_rs.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:342: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7f6422b72c40>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7f64202e9ef0>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_wazap__init__ (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_wazap__init__>

    def test_wazap__init__(self):
        with open(self._fix_path(), "rb") as f:
            sir0 = Sir0Handler.load_python_model().from_bin(f.read())
        actual: WazaPProtocol = self.handler.get_model_cls()(
            sir0.content, sir0.data_pointer
        )
    
>       self.assertTrue(eq_move_list(FIX_MOVES, actual.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:245: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7fa3dcba5a00>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7fa3dcc60970>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_wazap_attrs (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_wazap_attrs>

    def test_wazap_attrs(self):
        actual = self._load_main_fixture(self._fix_path())
    
>       self.assertTrue(eq_move_list(FIX_MOVES, actual.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:298: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7fa3dcba5a00>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7fa3dccd9bb0>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_wazap_load_via_handler (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_wazap_load_via_handler>

    def test_wazap_load_via_handler(self):
        actual = self._load_main_fixture(self._fix_path())
    
>       self.assertTrue(eq_move_list(FIX_MOVES, actual.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:285: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7fa3dcba5a00>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7fa3d07e32f0>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_wazap_save_via_handler (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_wazap_save_via_handler>

    def test_wazap_save_via_handler(self):
        loaded = self._load_main_fixture(self._fix_path())
        actual = self._save_and_reload_main_fixture(loaded)
    
>       self.assertTrue(eq_move_list(FIX_MOVES, actual.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7fa3dcba5a00>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7fa3ce19afb0>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_wazap_sir0_unwrap (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_wazap_sir0_unwrap>

    def test_wazap_sir0_unwrap(self):
        with open(self._fix_path(), "rb") as f:
            sir0 = Sir0Handler.load_python_model().from_bin(f.read())
        actual: WazaPProtocol = self.handler.get_model_cls().sir0_unwrap(  # type: ignore
            sir0.content, sir0.data_pointer
        )
    
>       self.assertTrue(eq_move_list(FIX_MOVES, actual.moves))

skytemple_files_test/data/waza_p/waza_p_test.py:279: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
skytemple_files_test/data/waza_p/fixture.py:64: in eq_move_list
    if not eq_move(x, y):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7fa3dcba5a00>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7fa3dc54cdb0>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_move__init__ (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_move__init__>

    def test_move__init__(self):
        for expected, expected_inp in zip(FIX_MOVES, FIX_MOVES_BYTES):
            subject = self.handler.get_move_model()(expected_inp)
    
>           self.assertTrue(eq_move(expected, subject))

skytemple_files_test/data/waza_p/waza_p_test.py:52: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

one = <skytemple_files_test.data.waza_p.fixture.WazaMoveStub object at 0x7f6422b72c40>
two = <skytemple_rust.st_waza_p.WazaMove object at 0x7f6418a58a30>

    def eq_move(one: WazaMoveProtocol, two: WazaMoveProtocol) -> bool:
        return (
            one.base_power == two.base_power and
            one.type == two.type and
            one.category == two.category and
            int(one.settings_range) == int(two.settings_range) and
            int(one.settings_range_ai) == int(two.settings_range_ai) and
            one.base_pp == two.base_pp and
            one.ai_weight == two.ai_weight and
            one.miss_accuracy == two.miss_accuracy and
            one.accuracy == two.accuracy and
            one.ai_condition1_chance == two.ai_condition1_chance and
            one.number_chained_hits == two.number_chained_hits and
            one.max_upgrade_level == two.max_upgrade_level and
            one.crit_chance == two.crit_chance and
            one.affected_by_magic_coat == two.affected_by_magic_coat and
            one.is_snatchable == two.is_snatchable and
            one.uses_mouth == two.uses_mouth and
>           one.ai_frozen_check == two.ai_frozen_check and
            one.ignores_taunted == two.ignores_taunted and
            one.range_check_text == two.range_check_text and
            one.move_id == two.move_id and
            one.message_id == two.message_id
        )
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/fixture.py:87: AttributeError

Check warning on line 0 in skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

4 out of 8 runs failed: test_move_attrs (skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase)

artifacts/Pytest Test Results (Python 3.10 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.11 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.8 - Native true)/pytest.xml [took 0s]
artifacts/Pytest Test Results (Python 3.9 - Native true)/pytest.xml [took 0s]
Raw output
AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'
self = <skytemple_files_test.data.waza_p.waza_p_test.WazaPTestCase testMethod=test_move_attrs>

    def test_move_attrs(self):
        e = self.handler.get_move_model()(FIX_MOVES_BYTES[0])
    
        e.base_power = u16(1233)
        e.type = u8(2)
        e.category = u8(1)
        e.settings_range.target = 4
        e.settings_range.range = 3
        e.settings_range.condition = 2
        e.settings_range.unused = 1
        e.settings_range_ai.target = 10
        e.settings_range_ai.range = 15
        e.settings_range_ai.condition = 1
        e.settings_range_ai.unused = 11
        e.base_pp = u8(22)
        e.ai_weight = u8(31)
        e.miss_accuracy = u8(44)
        e.accuracy = u8(56)
        e.ai_condition1_chance = u8(123)
        e.number_chained_hits = u8(124)
        e.max_upgrade_level = u8(125)
        e.crit_chance = u8(126)
        e.affected_by_magic_coat = True
        e.is_snatchable = True
        e.uses_mouth = False
>       e.ai_frozen_check = u8(12)
E       AttributeError: 'skytemple_rust.st_waza_p.WazaMove' object has no attribute 'ai_frozen_check'

skytemple_files_test/data/waza_p/waza_p_test.py:97: AttributeError

Check warning on line 1 in mypy

See this annotation in the file changed.

@github-actions github-actions / Test Results

mypy-py3_11-linux (mypy) failed

artifacts/MyPy Test Results (Python 3.11)/mypy.xml [took 11s]
Raw output
mypy produced messages
skytemple_files/data/waza_p/_model.py:183:32: error: Incompatible types in assignment (expression has type "u8", variable has type "bool")  [assignment]
skytemple_files/data/waza_p/_model.py:212:24: error: Argument 2 to "write_u8" has incompatible type "bool"; expected "u8"  [arg-type]
skytemple_files/data/waza_p/handler.py:87:20: error: Incompatible return value type (got "type[WazaMove]", expected "type[WazaMoveProtocol[Any]]")  [return-value]

Check warning on line 1 in mypy

See this annotation in the file changed.

@github-actions github-actions / Test Results

mypy-py3_8-linux (mypy) failed

artifacts/MyPy Test Results (Python 3.8)/mypy.xml [took 13s]
Raw output
mypy produced messages
skytemple_files/data/waza_p/_model.py:212:24: error: Argument 2 to "write_u8" has incompatible type "bool"; expected "u8"  [arg-type]
skytemple_files/data/waza_p/handler.py:87:20: error: Incompatible return value type (got "Type[WazaMove]", expected "Type[WazaMoveProtocol[Any]]")  [return-value]