Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Dec 19, 2016
1 parent 4560f53 commit 16db12d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flask_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def init_app(self, app):

backend_options = app.config.get('PUSHER_BACKEND_OPTIONS')
if backend_options is not None:
if argspec.keywords:
if argspec.keywords == "backend_options":
pusher_kwargs.update(backend_options)
else:
message = u"Flask-Pusher ignored incompatible backend_options."
Expand Down
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_json_encoder(self):

def test_flask_json_patch(self):
if _json_encoder_support:
msg = u"Only pusher>=1.0,<1.1 is monkey patched"
msg = u"Only pusher<1.1 is monkey patched"
self.skipTest(msg)
try:
self.assertEqual(json, _pusher.pusher.json)
Expand Down Expand Up @@ -118,8 +118,8 @@ def test_all_configurations(self):
if "backend" in argspec.args:
self.assertTrue(backend.called)

if "backend_options" == argspec.keywords:
self.assertEqual({"anything": True}, backend.call_args[1])
if argspec.keywords == "backend_options":
self.assertTrue(backend.call_args[1]["anything"])

def test_pusher_key_in_template(self):
Pusher(self.app)
Expand Down

0 comments on commit 16db12d

Please sign in to comment.