mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 00:40:49 +00:00
autopep'd test
This commit is contained in:
@@ -8,6 +8,7 @@ import os
|
|||||||
import glob
|
import glob
|
||||||
from ptulsconv import commands
|
from ptulsconv import commands
|
||||||
|
|
||||||
|
|
||||||
class TestPDFExport(unittest.TestCase):
|
class TestPDFExport(unittest.TestCase):
|
||||||
def test_report_generation(self):
|
def test_report_generation(self):
|
||||||
"""
|
"""
|
||||||
@@ -15,7 +16,8 @@ class TestPDFExport(unittest.TestCase):
|
|||||||
be converted into PDF docs without throwing an error
|
be converted into PDF docs without throwing an error
|
||||||
"""
|
"""
|
||||||
files = []
|
files = []
|
||||||
files = [os.path.dirname(__file__) + "/../export_cases/Robin Hood Spotting.txt"]
|
files = [os.path.dirname(__file__) +
|
||||||
|
"/../export_cases/Robin Hood Spotting.txt"]
|
||||||
for path in files:
|
for path in files:
|
||||||
tempdir = tempfile.TemporaryDirectory()
|
tempdir = tempfile.TemporaryDirectory()
|
||||||
os.chdir(tempdir.name)
|
os.chdir(tempdir.name)
|
||||||
@@ -31,7 +33,8 @@ class TestPDFExport(unittest.TestCase):
|
|||||||
|
|
||||||
def test_report_generation_track_markers(self):
|
def test_report_generation_track_markers(self):
|
||||||
files = []
|
files = []
|
||||||
files.append(os.path.dirname(__file__) + "/../export_cases/Test for ptulsconv.txt")
|
files.append(os.path.dirname(__file__) +
|
||||||
|
"/../export_cases/Test for ptulsconv.txt")
|
||||||
for path in files:
|
for path in files:
|
||||||
tempdir = tempfile.TemporaryDirectory()
|
tempdir = tempfile.TemporaryDirectory()
|
||||||
os.chdir(tempdir.name)
|
os.chdir(tempdir.name)
|
||||||
@@ -46,7 +49,5 @@ class TestPDFExport(unittest.TestCase):
|
|||||||
tempdir.cleanup()
|
tempdir.cleanup()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user