Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Martino committed Apr 11, 2019
1 parent 7f7dd97 commit ab47716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion celery_exporter/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_config(self, app):
if i in routes and "queue" in routes[i]:
res[task_name] = routes[i]["queue"]
break
else:
else:
res[task_name] = default
return res

Expand Down
3 changes: 1 addition & 2 deletions test/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def setUp(self):
"celery@adsqas78e891": {
"task_routes": {"my_task": {}, "trial": {"queue": "deadbeef"}}
},
"celery@12311847jsa2": {
},
"celery@12311847jsa2": {},
}
registered.return_value = {"celery@d6f95e9e24fc": [self.task, "trial"]}
setup_metrics(self.app, self.namespace) # reset metrics
Expand Down

0 comments on commit ab47716

Please sign in to comment.