X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0f7ebe49c20394d80afb129b29e4afa411347441..e81283e08cca4c47d57dd0aef34a5c598931a9d2:/apps/catalogue/tests/publish.py diff --git a/apps/catalogue/tests/publish.py b/apps/catalogue/tests/publish.py index 9f0b8ca4..93e02daa 100644 --- a/apps/catalogue/tests/publish.py +++ b/apps/catalogue/tests/publish.py @@ -28,7 +28,7 @@ class PublishTests(TestCase): def test_publish(self, api_call): self.book[0].head.set_publishable(True) self.book.publish(self.user) - api_call.assert_called_with(self.user, 'books/', {"book_xml": self.text1}) + api_call.assert_called_with(self.user, 'books/', {"book_xml": self.text1, "days": 0}, beta=False) @patch('apiclient.api_call') def test_publish_multiple(self, api_call): @@ -37,4 +37,4 @@ class PublishTests(TestCase): self.book[1].commit(get_fixture('chunk2.xml')) self.book[1].head.set_publishable(True) self.book.publish(self.user) - api_call.assert_called_with(self.user, 'books/', {"book_xml": get_fixture('expected.xml')}) + api_call.assert_called_with(self.user, 'books/', {"book_xml": get_fixture('expected.xml'), "days": 0}, beta=False)