Skip to content

Commit

Permalink
Remove mutable arguments in assert_routes_to_queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrow authored and auvipy committed Jul 13, 2020
1 parent 9d54c8a commit d537be4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/unit/app/test_routes.py
Expand Up @@ -51,7 +51,13 @@ def mytask(*args, **kwargs):
self.mytask = mytask

def assert_routes_to_queue(self, queue, router, name,
args=[], kwargs={}, options={}):
args=None, kwargs=None, options=None):
if options is None:
options = {}
if kwargs is None:
kwargs = {}
if args is None:
args = []
assert router.route(options, name, args, kwargs)['queue'].name == queue

def assert_routes_to_default_queue(self, router, name, *args, **kwargs):
Expand Down

0 comments on commit d537be4

Please sign in to comment.