diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-11 15:06:40 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-11 15:06:40 +0100 |
commit | d4f1bdfadb39ed966c2aeddba1b7fff898042fe6 (patch) | |
tree | aaec057f1ea0cfb1a4714321eb529d99a203e649 /ctrack/register/tests/test_engagement_events.py | |
parent | 1f47b102acd45129bf8e96713af5dc6265ba2873 (diff) |
done models and form for meeting -with tests
Diffstat (limited to '')
-rw-r--r-- | ctrack/register/tests/test_engagement_events.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ctrack/register/tests/test_engagement_events.py b/ctrack/register/tests/test_engagement_events.py deleted file mode 100644 index 602d027..0000000 --- a/ctrack/register/tests/test_engagement_events.py +++ /dev/null @@ -1,33 +0,0 @@ -"""LEGACY - SPIKE CODE _ TO BE DELETED""" - -# TODO - delete this code - -import datetime - -import pytest - -from ctrack.register.models import MeetingEvent - -pytestmark = pytest.mark.django_db - - -def test_meeting_event(person, user): - uname = user.name - now = datetime.datetime.now() - e = MeetingEvent.objects.create( - type_descriptor="Meeting", - short_description="Big Important Meeting", - datetime="2020-10-10T15:00", - comments="Nice comments", - location="Harvey's House", - user=user - ) - e.participants.add(person) - assert len(e.participants.all()) == 1 - assert e.type_descriptor == "Meeting" - assert person in e.participants.all() - assert e.user.name == uname - assert e.created_date.day == now.day - assert e.created_date.hour == now.hour - assert e.modified_date.day == now.day - assert e.modified_date.hour == now.hour |