Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/client/online_routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/client/online_routes.py')
-rwxr-xr-xtests/units/client/online_routes.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/units/client/online_routes.py b/tests/units/client/online_routes.py
index 0431934..1d1b780 100755
--- a/tests/units/client/online_routes.py
+++ b/tests/units/client/online_routes.py
@@ -25,7 +25,7 @@ from sugar_network.model.user import User
from sugar_network.model.report import Report
from sugar_network.model.context import Context
from sugar_network.model.release import Release
-from sugar_network.model.artifact import Artifact
+from sugar_network.model.post import Post
from sugar_network.toolkit.router import route
from sugar_network.toolkit import Option
@@ -1223,7 +1223,7 @@ Can't find all required implementations:
ipc.get(['context', guid], reply=['title']))
def test_RestrictLayers(self):
- self.start_online_client([User, Context, Release, Artifact])
+ self.start_online_client([User, Context, Release])
ipc = IPCConnection()
context = ipc.post(['context'], {
@@ -1404,18 +1404,18 @@ Can't find all required implementations:
assert trigger.wait(.1) is not None
def test_ContentDisposition(self):
- self.start_online_client([User, Context, Release, Artifact])
+ self.start_online_client([User, Context, Release, Post])
ipc = IPCConnection()
- artifact = ipc.post(['artifact'], {
- 'type': 'instance',
+ post = ipc.post(['post'], {
+ 'type': 'object',
'context': 'context',
'title': 'title',
- 'description': 'description',
+ 'message': '',
})
- ipc.request('PUT', ['artifact', artifact, 'data'], 'blob', headers={'Content-Type': 'image/png'})
+ ipc.request('PUT', ['post', post, 'data'], 'blob', headers={'Content-Type': 'image/png'})
- response = ipc.request('GET', ['artifact', artifact, 'data'])
+ response = ipc.request('GET', ['post', post, 'data'])
self.assertEqual(
'attachment; filename="Title.png"',
response.headers.get('Content-Disposition'))