refactor; rename classes and methods
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user