aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/tests/test_models.py7
-rw-r--r--ctrack/organisations/tests/test_views.py2
2 files changed, 2 insertions, 7 deletions
diff --git a/ctrack/organisations/tests/test_models.py b/ctrack/organisations/tests/test_models.py
index 6c41c49..6f79cb4 100644
--- a/ctrack/organisations/tests/test_models.py
+++ b/ctrack/organisations/tests/test_models.py
@@ -1,7 +1,7 @@
import pytest
from slugify import slugify
-from ctrack.organisations.models import Organisation
+from ctrack.organisations.models import IncidentReport, Organisation
pytestmark = pytest.mark.django_db
@@ -29,8 +29,3 @@ def test_update_organisation(org_with_people):
def test_new_address(addr):
# The address "has" an organisation
assert addr.organisation.name
-
-
-def test_incident_report(org_with_people):
- breakpoint()
- pass
diff --git a/ctrack/organisations/tests/test_views.py b/ctrack/organisations/tests/test_views.py
index 1e2476d..cebcda9 100644
--- a/ctrack/organisations/tests/test_views.py
+++ b/ctrack/organisations/tests/test_views.py
@@ -36,5 +36,5 @@ def test_incident_report_create_view():
factory = RequestFactory()
request = factory.get(f"{org.name}/create-incident-report")
request.user = user
- response = IncidentReportCreateView.as_view()(request)
+ response = IncidentReportCreateView.as_view()(request, org.slug)
assert response.status_code == 200