summaryrefslogtreecommitdiffstats
path: root/instruments/tests/test_views.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-14 17:46:36 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-14 17:46:36 +0100
commitbbdc85fbc53a914f9375aae0a9f3730a940ded95 (patch)
treea27c2f2ffc319eb91294d9409aa643e51aadd385 /instruments/tests/test_views.py
parent95507940f12a0a62e2e207b02cecfca2c3c69418 (diff)
We have a basic SOP list view
- added the new url file - styled similar to EP list for organisation - uses a spanned row in the table for a description or summary of the document - TODO: update the model to use the summary row - TODO: add more metadata
Diffstat (limited to 'instruments/tests/test_views.py')
-rw-r--r--instruments/tests/test_views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/instruments/tests/test_views.py b/instruments/tests/test_views.py
new file mode 100644
index 0000000..048ab47
--- /dev/null
+++ b/instruments/tests/test_views.py
@@ -0,0 +1,10 @@
+import pytest
+from django.urls import reverse
+
+pytestmark = pytest.mark.django_db
+
+
+def test_view_url_exists_at_desired_location(client):
+ url = reverse("instruments:sop-list")
+ response = client.get(url)
+ assert response.status_code == 200