Skip to content

Commit

Permalink
Mock task to avoid calling redis
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont authored Feb 3, 2025
1 parent 92c53c7 commit 9ed40f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accounts/tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def test_handle_uploaded_file_html(self):
self.assertEqual(os.path.exists(settings.UPLOADS_PATH + '/%i/%s' % (user.id, filename)), False)

@override_uploads_path_with_temp_directory
@mock.patch('general.tasks.process_before_description.delay')
def test_handle_uploaded_duplicate_filenames_html(self):
user = User.objects.create_user("testuser", password="testpass")
self.client.force_login(user)
Expand Down

0 comments on commit 9ed40f1

Please sign in to comment.