fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usunięcie komunikatów do debugowania z xslt.js.
[redakcja.git]
/
apps
/
api
/
tests
/
__init__.py
diff --git
a/apps/api/tests/__init__.py
b/apps/api/tests/__init__.py
index
751a085
..
c5d79e7
100644
(file)
--- a/
apps/api/tests/__init__.py
+++ b/
apps/api/tests/__init__.py
@@
-145,7
+145,7
@@
class SimpleTest(TestCase):
@temprepo('simple')
@temprepo('simple')
- def test_document_text_
updat
e(self):
+ def test_document_text_
sav
e(self):
self.assertTrue(self.client.login(username='admin', password='admin'))
TEXT = u"Ala ma kota i psa"
self.assertTrue(self.client.login(username='admin', password='admin'))
TEXT = u"Ala ma kota i psa"
@@
-154,7
+154,8
@@
class SimpleTest(TestCase):
resp = self.assert_json_response()
resp = self.assert_json_response()
- self.response = self.client.put(resp['text_url'], {'contents': TEXT })
+ self.response = self.client.post(resp['text_url'], {
+ 'revision': resp['user_revision'] ,'contents': TEXT })
result = self.assert_json_response(must_have={u'document': u'sample'} )
#self.response = self.client.get(result['url'])
result = self.assert_json_response(must_have={u'document': u'sample'} )
#self.response = self.client.get(result['url'])