Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebruckert committed Jan 16, 2025
1 parent 2058de1 commit 065d898
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_empty_scope(self):
normalized_scope_string_2 = self.normalize_scope(scope_string)

self.assertEqual(scope_string, "")
self.assertEqual(normalized_scope_string, None)
self.assertEqual(normalized_scope_string_2, None)
self.assertEqual(normalized_scope_string, "")
self.assertEqual(normalized_scope_string_2, "")

converted_scopes = Scope.from_string(scope_string)
self.assertEqual(converted_scopes, set())
Expand Down 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, None)
self.assertEqual(normalized_scope_string, "")

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

self.assertIsNone(self.normalize_scope(None))

Expand Down

0 comments on commit 065d898

Please sign in to comment.