tests.py 289 B

123456789
  1. from django.test import TestCase
  2. from django.urls import reverse_lazy
  3. class SettingsTestCase(TestCase):
  4. def test_settings(self):
  5. with self.assertNumQueries(1):
  6. res = self.client.get(reverse_lazy("api:get_settings"))
  7. self.assertEqual(res.status_code, 200)