Skip to content

Commit a1dc572

Browse files
test: Add endpoint ping test.
1 parent 34e90af commit a1dc572

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

promo_code/core/tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import http
2+
3+
import django.test
4+
import django.urls
5+
6+
7+
class StaticURLTests(django.test.TestCase):
8+
def test_ping_endpoint(self):
9+
response = self.client.get(django.urls.reverse('core:ping'))
10+
self.assertEqual(response.status_code, http.HTTPStatus.OK)

0 commit comments

Comments
 (0)