Skip to content

Commit

Permalink
Remove unnecessary noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jun 9, 2023
1 parent 1440ec1 commit 9f439a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_admin.py
Expand Up @@ -259,7 +259,7 @@ def test_filer_upload_file(self, extra_headers={}):
'Filedata': file_obj,
'jsessionid': self.client.session.session_key
}
self.client.post(url, post_data, **extra_headers) # noqa
self.client.post(url, post_data, **extra_headers)

self.assertEqual(Image.objects.count(), 1)
self.assertEqual(Image.objects.all()[0].original_filename,
Expand All @@ -282,7 +282,7 @@ def test_filer_upload_video(self, extra_headers={}):
'Filedata': file_obj,
'jsessionid': self.client.session.session_key
}
self.client.post(url, post_data, **extra_headers) # noqa
self.client.post(url, post_data, **extra_headers)

self.assertEqual(Video.objects.count(), 1)
self.assertEqual(Video.objects.all()[0].original_filename, self.video_name)
Expand All @@ -304,7 +304,7 @@ def test_filer_upload_extimage(self, extra_headers={}):
'Filedata': file_obj,
'jsessionid': self.client.session.session_key
}
self.client.post(url, post_data, **extra_headers) # noqa
self.client.post(url, post_data, **extra_headers)

self.assertEqual(ExtImage.objects.count(), 1)
self.assertEqual(ExtImage.objects.all()[0].original_filename, self.image_name)
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_filer_upload_binary_data(self, extra_headers={}):
'Filedata': file_obj,
'jsessionid': self.client.session.session_key
}
self.client.post(url, post_data, **extra_headers) # noqa
self.client.post(url, post_data, **extra_headers)
self.assertEqual(Image.objects.count(), 0)
self.assertEqual(File.objects.count(), 1)
stored_file = File.objects.first()
Expand Down Expand Up @@ -371,7 +371,7 @@ def test_filer_ajax_upload_file_using_content_type(self):
'admin:filer-ajax_upload',
kwargs={'folder_id': folder.pk}
) + '?filename=renamed.pdf'
self.client.post( # noqa
self.client.post(
url,
data=file_obj.read(),
content_type='application/pdf',
Expand All @@ -390,7 +390,7 @@ def test_filer_ajax_upload_file_no_folder(self):
url = reverse(
'admin:filer-ajax_upload'
) + '?filename=%s' % self.image_name
self.client.post( # noqa
self.client.post(
url,
data=file_obj.read(),
content_type='image/jpeg',
Expand Down

0 comments on commit 9f439a9

Please sign in to comment.