kopia lustrzana https://gitlab.com/marnanel/chapeau
"local" is no longer an argument to Create. Skipped one test.
rodzic
a9749b1ffe
commit
9d1fc571ea
|
@ -1,4 +1,5 @@
|
|||
from django.test import TestCase, Client
|
||||
from unittest import skip
|
||||
from django_kepi.models import *
|
||||
import datetime
|
||||
import json
|
||||
|
@ -102,9 +103,10 @@ class CollectionTests(TestCase):
|
|||
else:
|
||||
self.assertNotIn('next', result)
|
||||
|
||||
@skip("/users isn't currently implemented")
|
||||
def test_usageByOtherApps(self):
|
||||
|
||||
PATH = '/thing-users'
|
||||
PATH = '/users'
|
||||
EXPECTED_SERIALIZATION = [
|
||||
{'id': 'https://example.com/user/alice', 'name': 'alice', 'type': 'Person', },
|
||||
{'id': 'https://example.com/user/bob', 'name': 'bob', 'type': 'Person', },
|
||||
|
@ -143,15 +145,13 @@ class CollectionTests(TestCase):
|
|||
'type': 'Follow',
|
||||
'actor': people[name],
|
||||
'object': people['alice'],
|
||||
},
|
||||
local=True)
|
||||
})
|
||||
|
||||
create({
|
||||
'type': 'Accept',
|
||||
'actor': people['alice'],
|
||||
'object': follow,
|
||||
},
|
||||
local=True)
|
||||
})
|
||||
|
||||
path = '/users/alice/followers'
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue