mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
fixup! Drop unecessary temp files
This commit is contained in:
parent
78987ace8f
commit
76ff961c78
2 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ class IsolationProviderTest:
|
||||||
|
|
||||||
p = provider.start_doc_to_pixels_proc(doc)
|
p = provider.start_doc_to_pixels_proc(doc)
|
||||||
with pytest.raises(errors.ConverterProcException):
|
with pytest.raises(errors.ConverterProcException):
|
||||||
provider._convert(doc, tmpdir, None, p)
|
provider._convert(doc, None, p)
|
||||||
assert provider.get_proc_exception(p) == errors.MaxPagesException
|
assert provider.get_proc_exception(p) == errors.MaxPagesException
|
||||||
|
|
||||||
def test_max_pages_client_enforcement(
|
def test_max_pages_client_enforcement(
|
||||||
|
@ -46,7 +46,7 @@ class IsolationProviderTest:
|
||||||
doc = Document(sample_doc)
|
doc = Document(sample_doc)
|
||||||
p = provider.start_doc_to_pixels_proc(doc)
|
p = provider.start_doc_to_pixels_proc(doc)
|
||||||
with pytest.raises(errors.MaxPagesException):
|
with pytest.raises(errors.MaxPagesException):
|
||||||
provider._convert(doc, tmpdir, None, p)
|
provider._convert(doc, None, p)
|
||||||
|
|
||||||
def test_max_dimensions(
|
def test_max_dimensions(
|
||||||
self,
|
self,
|
||||||
|
@ -60,12 +60,12 @@ class IsolationProviderTest:
|
||||||
doc = Document(sample_bad_width)
|
doc = Document(sample_bad_width)
|
||||||
p = provider.start_doc_to_pixels_proc(doc)
|
p = provider.start_doc_to_pixels_proc(doc)
|
||||||
with pytest.raises(errors.MaxPageWidthException):
|
with pytest.raises(errors.MaxPageWidthException):
|
||||||
provider._convert(doc, tmpdir, None, p)
|
provider._convert(doc, None, p)
|
||||||
|
|
||||||
doc = Document(sample_bad_height)
|
doc = Document(sample_bad_height)
|
||||||
p = provider.start_doc_to_pixels_proc(doc)
|
p = provider.start_doc_to_pixels_proc(doc)
|
||||||
with pytest.raises(errors.MaxPageHeightException):
|
with pytest.raises(errors.MaxPageHeightException):
|
||||||
provider._convert(doc, tmpdir, None, p)
|
provider._convert(doc, None, p)
|
||||||
|
|
||||||
|
|
||||||
class IsolationProviderTermination:
|
class IsolationProviderTermination:
|
||||||
|
|
|
@ -79,7 +79,7 @@ class TestQubes(IsolationProviderTest):
|
||||||
)
|
)
|
||||||
with pytest.raises(errors.ConverterProcException):
|
with pytest.raises(errors.ConverterProcException):
|
||||||
doc = Document(sample_doc)
|
doc = Document(sample_doc)
|
||||||
provider._convert(doc, tmpdir, None, proc)
|
provider._convert(doc, None, proc)
|
||||||
assert provider.get_proc_exception(proc) == errors.QubesQrexecFailed
|
assert provider.get_proc_exception(proc) == errors.QubesQrexecFailed
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue