aboutsummaryrefslogtreecommitdiffstats
path: root/api/tests
diff options
context:
space:
mode:
Diffstat (limited to 'api/tests')
-rw-r--r--api/tests/__init__.py0
-rw-r--r--api/tests/test_snake_names.py10
2 files changed, 10 insertions, 0 deletions
diff --git a/api/tests/__init__.py b/api/tests/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/api/tests/__init__.py
diff --git a/api/tests/test_snake_names.py b/api/tests/test_snake_names.py
new file mode 100644
index 00000000..14574311
--- /dev/null
+++ b/api/tests/test_snake_names.py
@@ -0,0 +1,10 @@
+from django_hosts.resolvers import reverse
+from rest_framework.test import APITestCase, force_authenticate
+
+
+class EmptyDatabaseSnakeNameTests(APITestCase):
+ def test_endpoint_returns_empty_list(self):
+ import pdb; pdb.set_trace()
+ url = reverse('snake-names-list', host='api')
+ response = self.client.get(url)
+ self.assertEqual(response.status_code, 200)