Skip to content

Commit ba97b6e

Browse files
committed
Add tests
1 parent 6bf6cc2 commit ba97b6e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

backend/tests/monitor/__init__.py

Whitespace-only changes.

backend/tests/monitor/test_views.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.test import TestCase
2+
from django.urls import reverse
3+
from rest_framework.test import APIClient
4+
5+
6+
class PullsViewTestCase(TestCase):
7+
def setUp(self):
8+
self.client = APIClient()
9+
10+
def test_monitor_pulls(self):
11+
resp = self.client.get(reverse("monitor:pulls"))
12+
self.assertEqual(resp.status_code, 200, resp.content)

0 commit comments

Comments
 (0)