Skip to content

Commit

Permalink
KSM CLI: Use second element in "fields" list in secret_test.py
Browse files Browse the repository at this point in the history
Changed access index from 0 to 1 while fetching "fields" list in secret_test.py, under the assertion tests. This change is due to adjustments made in the application code where the first element could possibly be None, hence to prevent False negatives and maintaining the relevance of tests, this index shift was necessary.
  • Loading branch information
maksimu committed Sep 15, 2023
1 parent 83f29e3 commit 78ed1c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def test_template_record_types(self):

self.assertIsInstance(data.get("fields"), list, "fields is not a list")

field = data.get("fields")[0]
field = data.get("fields")[1]
self.assertEqual("login", field.get("type"), "field type is not login")
self.assertIsNotNone(field.get("value"), "value was None")

Expand Down

0 comments on commit 78ed1c3

Please sign in to comment.