Skip to content

Commit

Permalink
fixing helper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idimov-keeper committed Sep 11, 2024
1 parent f0c8a4a commit db851e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/python/helper/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
keeper-secrets-manager-core>=16.2.2
keeper-secrets-manager-core>=16.6.6
pyyaml>=6.0.1
iso8601
4 changes: 2 additions & 2 deletions sdk/python/helper/tests/v3/v3_field_type_all_fields_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_address(self):
a.street2 = "Apt B"
a.city = "Gotham"
a.zip = "11111-2222"
a.country = "CA"
a.country = CountryEnum.CA
self._check_dict(a, value={
"street1": "North Main Street",
"street2": "Apt B",
Expand Down Expand Up @@ -386,7 +386,7 @@ def test_passkey(self):
ft.createdDate = 1625140800000
self._check_dict(ft, value={
"privateKey": {
"crv":"CRV",
"crv": "CRV",
"d": "DDDDD",
"ext": False,
"key_ops": [],
Expand Down
7 changes: 5 additions & 2 deletions sdk/python/helper/tests/v3/v3_field_type_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ def test_password_filter(self):
def test_load_map(self):
get_field_type_map()

# Nice test to make sure we loaded all the fields, if we add more fields this will fail ... but in a good way.
self.assertEqual(39, len(field_map.keys()))
# Nice test to make sure we loaded all the fields,
# if we add more fields this will fail ... but in a good way.
# All the fields include: VALID_RECORD_FIELDS and some subtypes:
# bankAccountItem, paymentCardItem, phoneItem
self.assertEqual(47, len(field_map.keys()))

# Check if we get a Login class
self.assertEqual(get_class_by_type("login"), Login)
Expand Down

0 comments on commit db851e1

Please sign in to comment.