Skip to content

Commit

Permalink
Update methods of tests for updates, privacy_policy, instruction and …
Browse files Browse the repository at this point in the history
…donation apps
  • Loading branch information
EXG1O committed May 4, 2024
1 parent 0dc0407 commit 50b1e91
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions donation/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ def setUp(self) -> None:
class DonationViewSetTests(CustomTestCase):
url: str = reverse('api:donation:donation-list')

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)


class SectionViewSetTests(CustomTestCase):
url: str = reverse('api:donation:section-list')

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)


class ButtonViewSetTests(CustomTestCase):
url: str = reverse('api:donation:button-list')

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
2 changes: 1 addition & 1 deletion instruction/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class SectionViewSetTests(TestCase):
def setUp(self) -> None:
self.client: APIClient = APIClient()

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
2 changes: 1 addition & 1 deletion privacy_policy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class SectionViewSetTests(TestCase):
def setUp(self) -> None:
self.client: APIClient = APIClient()

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
2 changes: 1 addition & 1 deletion updates/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class UpdateViewSetTests(TestCase):
def setUp(self) -> None:
self.client: APIClient = APIClient()

def test_get_method(self) -> None:
def test_list(self) -> None:
response: HttpResponse = self.client.get(self.url)
self.assertEqual(response.status_code, 200)

0 comments on commit 50b1e91

Please sign in to comment.