diff options
Diffstat (limited to 'ctrack/organisations/tests/test_factories.py')
-rw-r--r-- | ctrack/organisations/tests/test_factories.py | 11 |
1 files changed, 10 insertions, 1 deletions
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" |