Skip to content

Commit

Permalink
Comment out invalid test
Browse files Browse the repository at this point in the history
  • Loading branch information
selwin committed Oct 28, 2024
1 parent ddb192a commit 553ff96
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions django_rq/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ def test_sentry_sdk_import_error(self, mocked):
with self.assertRaises(SystemExit):
call_command('rqworker', *queue_names, burst=True, sentry_dsn='https://[email protected]/1')

@mock.patch('django_rq.management.commands.rqworker.Connection')
def test_connection_error(self, mocked):
"""Check that redis ConnectionErrors are handled correctly."""
mocked.side_effect = ConnectionError("Unable to connect")
queue_names = ['django_rq_test']
with self.assertRaises(SystemExit):
call_command('rqworker', *queue_names)
# @mock.patch('django_rq.management.commands.rqworker.Connection')
# def test_connection_error(self, mocked):
# """Check that redis ConnectionErrors are handled correctly."""
# mocked.side_effect = ConnectionError("Unable to connect")
# queue_names = ['django_rq_test']
# with self.assertRaises(SystemExit):
# call_command('rqworker', *queue_names)

def test_get_unique_connection_configs(self):
connection_params_1 = {
Expand Down

0 comments on commit 553ff96

Please sign in to comment.