Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s4nf4n committed Jan 23, 2022
1 parent 58a22d8 commit ed29f42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/documents/management/commands/document_consumer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import os
from datetime import datetime
from pathlib import Path, PurePath
from threading import Thread
from time import sleep
Expand Down
5 changes: 1 addition & 4 deletions src/documents/tests/test_management_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class TestConsumerInotifyWait(TestConsumer):

@mock.patch("documents.management.commands.document_consumer.logger.error")
def test_chunk_write_pdf_delay_write_3s(self, error_logger):
"""Write delay is higher than wait time, errors should be raised when trying to consume"""
"""Write delay is higher than wait time, errors should be raised when trying to consume!"""
self.task_mock.side_effect = self.bogus_task

self.t_start()
Expand All @@ -345,9 +345,6 @@ def test_chunk_write_pdf_delay_write_3s(self, error_logger):
# though they can be valid documents, just not complete.
self.assertEqual(error_logger.call_count, 2)

# just do all the tests with waiting longer for file to be unmodified
pass


@override_settings(CONSUMER_RECURSIVE=True)
class TestConsumerRecursive(TestConsumer):
Expand Down

0 comments on commit ed29f42

Please sign in to comment.