Skip to content

Commit

Permalink
fix test_scopes.py (Empty scopes are None, not "")
Browse files Browse the repository at this point in the history
  • Loading branch information
dieser-niko committed Oct 13, 2024
1 parent 5e127c9 commit d874d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def test_invalid_types(self):
def test_normalize_scope(self):

normalized_scope_string = self.normalize_scope([])
self.assertEqual(normalized_scope_string, "")
self.assertEqual(normalized_scope_string, None)

normalized_scope_string_2 = self.normalize_scope(())
self.assertEqual(normalized_scope_string_2, "")
self.assertEqual(normalized_scope_string_2, None)

self.assertIsNone(self.normalize_scope(None))

Expand Down

0 comments on commit d874d53

Please sign in to comment.