refactor; rename classes and methods

This commit is contained in:
2025-03-10 09:26:55 -05:00
parent c1ca01eb93
commit 571268b86a
15 changed files with 160 additions and 160 deletions

View File

@@ -5,11 +5,11 @@ from src.models import KeypadSize
@pytest.mark.parametrize(
"keypad_size",
[KeypadSize(numb_of_keys=10, attrs_per_key=11)]
[KeypadSize(numb_of_keys=10, props_per_key=11)]
)
def test_attr_set_idx(keypad_size):
user_keypad = UserKeypad.create(keypad_size)
for attr_idx in range(keypad_size.numb_of_attrs):
for attr_idx in range(keypad_size.numb_of_props):
user_keypad_idx = user_keypad.keypad[attr_idx]
assert (attr_idx % keypad_size.attrs_per_key == user_keypad_idx % keypad_size.attrs_per_key)
assert (attr_idx % keypad_size.props_per_key == user_keypad_idx % keypad_size.props_per_key)