Skip to content

Commit

Permalink
remove legacy unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFl committed Nov 3, 2021
1 parent b365adf commit b8afd23
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dojo/unittests/authorization/test_authorization_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ class TestAuthorizationTags(TestCase):
def setUp(self):
self.product_type = Product_Type()

@override_settings(FEATURE_AUTHORIZATION_V2=False)
def test_has_object_permission_legacy(self):

result = has_object_permission(self.product_type, Permissions.Product_Type_View)

self.assertFalse(result)

@patch('dojo.templatetags.authorization_tags.user_has_permission')
@override_settings(FEATURE_AUTHORIZATION_V2=True)
def test_has_object_permission_no_permission(self, mock_has_permission):
Expand Down

0 comments on commit b8afd23

Please sign in to comment.