diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-10-18 15:37:21 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-10-18 15:37:21 +0100 |
commit | d6a3d976e0a7bd2bde93a5ea5543e9e68922520d (patch) | |
tree | 3d02114cb0d676a870959288f2281e61b541150b /ctrack/organisations/tests/test_factories.py | |
parent | d25f73ff06f3daa428e0e87f42b83d071a31cc02 (diff) |
fixed some tests
Diffstat (limited to '')
-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" |