refactor customer interface to attributes

This commit is contained in:
2024-07-19 14:43:15 -05:00
parent 65d78867ca
commit 50dc917a90
11 changed files with 268 additions and 149 deletions

View File

@@ -1,7 +1,7 @@
import pytest
from src.models import KeypadSize
from src.user_cipher_keys import UserCipherKeys, CustomerInterface
from src.user_cipher_keys import UserCipherKeys, CustomerAttributes
from src.utils import generate_random_nonrepeating_list
@@ -27,7 +27,7 @@ def test_encode_decode_base64(passcode_len):
(KeypadSize(numb_of_keys=8, attrs_per_key=7), 12),
])
def test_decode_mask(keypad_size, max_nkode_len):
customer = CustomerInterface.new(keypad_size)
customer = CustomerAttributes.new(keypad_size)
passcode_entry = generate_random_nonrepeating_list(
keypad_size.numb_of_attrs,
max_val=keypad_size.numb_of_attrs)[:4]