aboutsummaryrefslogtreecommitdiffstats
path: root/api/tests
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-22 23:30:15 +0100
committerGravatar Johannes Christ <[email protected]>2019-01-22 23:30:15 +0100
commit475b3bcd51d5e016dcc3830d49000dda852264a7 (patch)
treedb1d6761af3e4939746a037c482c22b22e09dd15 /api/tests
parentChonk down horrible JOIN performance. (diff)
Add an API endpoint for reminders.
Diffstat (limited to 'api/tests')
-rw-r--r--api/tests/test_models.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/api/tests/test_models.py b/api/tests/test_models.py
index 1fe60c0d..a958419d 100644
--- a/api/tests/test_models.py
+++ b/api/tests/test_models.py
@@ -6,10 +6,11 @@ from ..models import (
DeletedMessage, DocumentationLink,
Infraction, Message,
MessageDeletionContext, ModelReprMixin,
- OffTopicChannelName, Role,
- SnakeFact, SnakeIdiom,
- SnakeName, SpecialSnake,
- Tag, User
+ OffTopicChannelName, Reminder,
+ Role, SnakeFact,
+ SnakeIdiom, SnakeName,
+ SpecialSnake, Tag,
+ User
)
@@ -95,6 +96,15 @@ class StringDunderMethodTests(SimpleTestCase):
user_id=5, actor_id=5, hidden=True,
type='kick', reason='He terk my jerb!',
expires_at=dt(5018, 11, 20, 15, 52, tzinfo=timezone.utc)
+ ),
+ Reminder(
+ author=User(
+ id=452, name='billy',
+ discriminator=5, avatar_hash=None
+ ),
+ channel_id=555,
+ content="oh no",
+ expiration=dt(5018, 11, 20, 15, 52, tzinfo=timezone.utc)
)
)