diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-29 14:23:07 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-29 14:23:07 +0100 |
commit | 739b3dd6aa383f70e5442e74fb4d217d5619d110 (patch) | |
tree | 54d9ef6fad57c7dbc6283b0a2cc2cd73955dc80c /ctrack/organisations/tests | |
parent | 8edc6a41c160ff75e964db45371e4ae63fb68c17 (diff) |
IncidentReport model in place and func test passing so far
Diffstat (limited to 'ctrack/organisations/tests')
-rw-r--r-- | ctrack/organisations/tests/test_models.py | 7 | ||||
-rw-r--r-- | ctrack/organisations/tests/test_views.py | 2 |
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 |