From d6a3d976e0a7bd2bde93a5ea5543e9e68922520d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 18 Oct 2020 15:37:21 +0100 Subject: fixed some tests --- ctrack/organisations/tests/test_factories.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ctrack/organisations/tests/test_factories.py') diff --git a/ctrack/organisations/tests/test_factories.py b/ctrack/organisations/tests/test_factories.py index 227d7db..0b793c3 100644 --- a/ctrack/organisations/tests/test_factories.py +++ b/ctrack/organisations/tests/test_factories.py @@ -1,9 +1,13 @@ +import pytest + from ctrack.organisations.tests.factories import ( OrganisationFactory, PersonFactory, - RoleFactory, + RoleFactory, SingleDateTimeEventFactory, ) +pytestmark = pytest.mark.django_db + def test_organisation_factory(): o = OrganisationFactory.build() @@ -19,3 +23,8 @@ def test_person_factory(): r = RoleFactory.build() p = PersonFactory.build(role=r, predecessor__predecessor=None) assert p.first_name + + +def test_meeting_event_factory(): + meeting = SingleDateTimeEventFactory.create(type_descriptor="MEETING") + assert meeting.type_descriptor == "MEETING" -- cgit v1.2.3