Remove duplicated date parsing test

The exact same tests existed twice in the file.
This commit is contained in:
Johannes Wienke 2020-03-08 18:26:29 +01:00
parent 222acb8c13
commit a3aab0cb48

View File

@ -172,13 +172,3 @@ class TestDate(TestCase):
document = RasterisedDocumentParser("/dev/null")
document.get_text()
self.assertIsNone(document.get_date())
@mock.patch(
"paperless_tesseract.parsers.RasterisedDocumentParser.get_text",
return_value="01-07-0590 00:00:00"
)
@mock.patch(MOCK_SCRATCH, SCRATCH)
def test_crazy_date_past(self, *args):
document = RasterisedDocumentParser("/dev/null")
document.get_text()
self.assertIsNone(document.get_date())