mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 15:17:06 +00:00
Fixes clashing test model name
This commit is contained in:
parent
c75f5a1598
commit
4fcdbe5299
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ class ActivitypubFields(TestCase):
|
|||
id: str = 'http://hi.com'
|
||||
type: str = 'Test'
|
||||
|
||||
class TestModel(ActivitypubMixin, BookWyrmModel):
|
||||
class TestPrivacyModel(ActivitypubMixin, BookWyrmModel):
|
||||
''' real simple mock model because BookWyrmModel is abstract '''
|
||||
privacy_field = fields.PrivacyField()
|
||||
mention_users = fields.TagField(User)
|
||||
|
@ -127,7 +127,7 @@ class ActivitypubFields(TestCase):
|
|||
to=[public],
|
||||
cc=['bleh'],
|
||||
)
|
||||
model_instance = TestModel(privacy_field='direct')
|
||||
model_instance = TestPrivacyModel(privacy_field='direct')
|
||||
self.assertEqual(model_instance.privacy_field, 'direct')
|
||||
|
||||
instance = fields.PrivacyField()
|
||||
|
|
Loading…
Reference in a new issue