c3lf-system-3/core/tickets/tests/v2/test_tickets.py

14 lines
269 B
Python
Raw Normal View History

2023-11-23 22:17:20 +00:00
from django.test import TestCase, Client
client = Client()
class IssueApiTest(TestCase):
def test_issues(self):
response = client.get('/api/2/tickets/')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.json(), [])