mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-02 12:22:22 +00:00
Test remote ids
This commit is contained in:
parent
bebb4d465b
commit
c401d537f2
1 changed files with 6 additions and 0 deletions
|
@ -11,3 +11,9 @@ class BaseModel(TestCase):
|
||||||
instance.id = 1
|
instance.id = 1
|
||||||
expected = instance.absolute_id
|
expected = instance.absolute_id
|
||||||
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
|
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
|
||||||
|
|
||||||
|
def test_absolute_id_with_remote(self):
|
||||||
|
instance = FedireadsModel()
|
||||||
|
instance.remote_id = 'boop doop'
|
||||||
|
expected = instance.absolute_id
|
||||||
|
self.assertEqual(expected, 'boop doop')
|
||||||
|
|
Loading…
Reference in a new issue