Skip to content

Commit 5ebb730

Browse files
committed
Add tests
1 parent cc018ed commit 5ebb730

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

backend/tests/monitor/__init__.py

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
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)