You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
302 B

from django.urls import reverse
from rest_framework.test import APITestCase
class DummyTest(APITestCase):
endpoint = reverse('dummy-view')
def test_dummy_view(self):
response = self.client.get(
self.endpoint
)
self.assertEqual(response.status_code, 200)