Add some white lines to make the code more compliant
This commit is contained in:
parent
9fa76c4c20
commit
0239ab3b6a
9 changed files with 21 additions and 0 deletions
|
@ -13,6 +13,7 @@ class TestHelp(unittest.TestCase):
|
|||
stdout, _ = proc.communicate()
|
||||
self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout)
|
||||
|
||||
|
||||
class TestGetMeta(unittest.TestCase):
|
||||
def test_pdf(self):
|
||||
proc = subprocess.Popen(['./main.py', '--show', './tests/data/dirty.pdf'],
|
||||
|
|
|
@ -8,6 +8,7 @@ import tempfile
|
|||
|
||||
from src import pdf, images, audio, office, parser_factory
|
||||
|
||||
|
||||
class TestParserFactory(unittest.TestCase):
|
||||
def test_subsubcalss(self):
|
||||
""" Test that our module auto-detection is handling sub-sub-classes """
|
||||
|
@ -15,6 +16,7 @@ class TestParserFactory(unittest.TestCase):
|
|||
self.assertEqual(mimetype, 'audio/mpeg')
|
||||
self.assertEqual(parser.__class__, audio.MP3Parser)
|
||||
|
||||
|
||||
class TestGetMeta(unittest.TestCase):
|
||||
def test_pdf(self):
|
||||
p = pdf.PDFParser('./tests/data/dirty.pdf')
|
||||
|
@ -132,6 +134,7 @@ class TestDeepCleaning(unittest.TestCase):
|
|||
|
||||
os.remove('./tests/data/clean.odt')
|
||||
|
||||
|
||||
class TestCleaning(unittest.TestCase):
|
||||
def test_pdf(self):
|
||||
shutil.copy('./tests/data/dirty.pdf', './tests/data/clean.pdf')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue