fix: remove unused test-case

This commit is contained in:
winkidney
2022-05-04 20:21:15 +08:00
parent 20ad8a36a2
commit a2def10ad7

View File

@@ -112,19 +112,6 @@ class PinPrivacyTests(APITestCase):
resp = self.client.get(reverse("pin-list"))
self.assertEqual(len(resp.json()['results']), 0, resp.content)
def test_should_non_owner_and_anonymous_user_has_no_permission_to_list_private_pin_in_board(self):
resp = self.client.get(self.board_url)
self.assertEqual(len(resp.json()['pins_detail']), 0, resp.content)
self.client.login(username=self.non_owner.username, password='password')
resp = self.client.get(self.board_url)
self.assertEqual(len(resp.json()['pins_detail']), 0, resp.content)
def test_should_owner_user_has_permission_to_list_private_pin_in_board(self):
self.client.login(username=self.owner.username, password='password')
resp = self.client.get(self.board_url)
self.assertEqual(len(resp.json()['pins_detail']), 1, resp.content)
def test_should_owner_user_has_permission_to_list_private_pin(self):
self.client.login(username=self.owner.username, password='password')
resp = self.client.get(reverse("pin-list"))