Skip to content

Commit ee25921

Browse files
Remove Message Model Test
The message model was tested by instantiating and confirming it has a string representation, but instantiating abstract models is undefined behavior, and can break with future versions of django. The behavior of the test is redundant anyway, since an abstract model wouldn't exist in isolation, and the desired behavior is confirmed by inheritors. Signed-off-by: Hassan Abouelela <[email protected]>
1 parent 7b40cd8 commit ee25921

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pydis_site/apps/api/tests/test_models.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
DeletedMessage,
88
DocumentationLink,
99
Infraction,
10-
Message,
1110
MessageDeletionContext,
1211
Nomination,
1312
NominationEntry,
@@ -116,17 +115,6 @@ def setUp(self):
116115
colour=0x5, permissions=0,
117116
position=10,
118117
),
119-
Message(
120-
id=45,
121-
author=User(
122-
id=444,
123-
name='bill',
124-
discriminator=5,
125-
),
126-
channel_id=666,
127-
content="wooey",
128-
embeds=[]
129-
),
130118
MessageDeletionContext(
131119
actor=User(
132120
id=5555,

0 commit comments

Comments
 (0)