Commit d18859db authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/thabloidtest' into 'master'

Fix warning in tests

See merge request !312
parents 443a81dd 484ea4d6
......@@ -15,11 +15,11 @@ class TestThabloid(TestCase):
super().setUpClass()
cls._old_media_root = settings.MEDIA_ROOT
settings.MEDIA_ROOT = tempfile.mkdtemp()
with open('thabloid/fixtures/thabloid-1998-1999-1.pdf', 'rb') as f:
cls.thabloid = Thabloid(
year=1998,
issue=1,
file=File(open('thabloid/fixtures/thabloid-1998-1999-1.pdf',
'rb')))
file=File(f))
# Only generate pages if we have 'gs'
if shutil.which('gs') is None:
cls.thabloid.save(nopages=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment