Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/model/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/model/comment.py')
-rwxr-xr-xtests/units/model/comment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/model/comment.py b/tests/units/model/comment.py
index 4b97723..048a6a4 100755
--- a/tests/units/model/comment.py
+++ b/tests/units/model/comment.py
@@ -3,7 +3,7 @@
from __init__ import tests
-from sugar_network.client import Connection
+from sugar_network.client import Connection, keyfile
from sugar_network.model.user import User
from sugar_network.model.context import Context
from sugar_network.model.review import Review
@@ -18,7 +18,7 @@ class CommentTest(tests.Test):
def test_SetContext(self):
volume = self.start_master([User, Context, Review, Feedback, Solution, Comment, Implementation])
- client = Connection()
+ client = Connection(auth=http.SugarAuth(keyfile.value))
self.assertRaises(http.NotFound, client.post, ['comment'], {'message': '', 'review': 'absent'})
self.assertRaises(http.NotFound, client.post, ['comment'], {'message': '', 'feedback': 'absent'})