format everything with black

This commit is contained in:
Istvan Ruzman
2020-09-21 18:16:03 +02:00
parent 2b5e7ceeed
commit 334445c54e
12 changed files with 353 additions and 426 deletions

View File

@@ -148,9 +148,7 @@ def flattened_product(l1, l2):
return result
VENDOR_TEST_ATTRIBUTES = flattened_product(
VENDOR_FORMAT_COMBINATIONS, TEST_ATTRIBUTES
)
VENDOR_TEST_ATTRIBUTES = flattened_product(VENDOR_FORMAT_COMBINATIONS, TEST_ATTRIBUTES)
VENDOR_TAGGED_ATTRIBUTES = flattened_product(
VENDOR_FORMAT_COMBINATIONS, TAGGED_ATTRIBUTES
)
@@ -206,13 +204,7 @@ def generate_vendor_attribute(vendor_id, tlen, llen, attr_bytes):
attr_bytes = attr_bytes[2:]
packet = (
bytes(20)
+ b"\x1a"
+ vsa_length
+ vendor_id
+ attr_type
+ attr_len
+ attr_bytes
bytes(20) + b"\x1a" + vsa_length + vendor_id + attr_type + attr_len + attr_bytes
)
return packet
@@ -268,9 +260,7 @@ def test_password(plaintext, obfuscated, authenticator):
assert len(decoded) == len(plaintext)
assert decoded == plaintext
assert utils.validate_pap_password(
SECRET, authenticator, encoded, plaintext
)
assert utils.validate_pap_password(SECRET, authenticator, encoded, plaintext)
@pytest.mark.parametrize(