diff options
author | 2019-04-05 12:11:31 +0100 | |
---|---|---|
committer | 2019-04-05 12:11:31 +0100 | |
commit | ebda74029355ce3236ca9266acde40fd40329df7 (patch) | |
tree | aba491f902c874328c88b8e7ccb9772b5414c17f /api/tests/test_deleted_messages.py | |
parent | Set `harakiri = 30`. (diff) |
[#176] Redo project layout
Diffstat (limited to 'api/tests/test_deleted_messages.py')
-rw-r--r-- | api/tests/test_deleted_messages.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/api/tests/test_deleted_messages.py b/api/tests/test_deleted_messages.py deleted file mode 100644 index cd5acab0..00000000 --- a/api/tests/test_deleted_messages.py +++ /dev/null @@ -1,43 +0,0 @@ -from datetime import datetime - -from django_hosts.resolvers import reverse - -from .base import APISubdomainTestCase -from ..models import User - - -class DeletedMessagesTests(APISubdomainTestCase): - @classmethod - def setUpTestData(cls): # noqa - cls.author = User.objects.create( - id=55, - name='Robbie Rotten', - discriminator=55, - avatar_hash=None - ) - - cls.data = { - 'actor': None, - 'creation': datetime.utcnow().isoformat(), - 'deletedmessage_set': [ - { - 'author': cls.author.id, - 'id': 55, - 'channel_id': 5555, - 'content': "Terror Billy is a meanie", - 'embeds': [] - }, - { - 'author': cls.author.id, - 'id': 56, - 'channel_id': 5555, - 'content': "If you purge this, you're evil", - 'embeds': [] - } - ] - } - - def test_accepts_valid_data(self): - url = reverse('bot:messagedeletioncontext-list', host='api') - response = self.client.post(url, data=self.data) - self.assertEqual(response.status_code, 201) |