Skip to content

Commit

Permalink
Fix Python 3.7 compatibility #172
Browse files Browse the repository at this point in the history
  • Loading branch information
eoranged committed May 11, 2019
1 parent 60e18f9 commit 0e0ebd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions rq_dashboard/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ class FailedQueue(Queue):
Minimalist implementation of old failed queue.
Very slow and memory-consuming.
"""
def __init__(self, default_timeout=None, connection=None, async=True):
def __init__(self, default_timeout=None, connection=None):
super(FailedQueue, self).__init__(
name=NotImplemented,
default_timeout=default_timeout,
connection=connection,
async=async,
)

self._registries = (q.failed_job_registry for q in Queue.all())
Expand Down
5 changes: 5 additions & 0 deletions tests/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def test_workers_list_json(self):
self.assertIsInstance(data, dict)
self.assertIn('workers', data)

def test_failed_jobs(self):
response = self.client.get('/failed')
self.assertEqual(response.status_code, HTTP_OK)



__all__ = [
'BasicTestCase',
Expand Down

0 comments on commit 0e0ebd8

Please sign in to comment.