fixup! Drop unecessary temp files

This commit is contained in:
Alex Pyrgiotis 2024-10-02 18:57:32 +03:00
parent 78987ace8f
commit 76ff961c78
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
2 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ class IsolationProviderTest:
p = provider.start_doc_to_pixels_proc(doc)
with pytest.raises(errors.ConverterProcException):
provider._convert(doc, tmpdir, None, p)
provider._convert(doc, None, p)
assert provider.get_proc_exception(p) == errors.MaxPagesException
def test_max_pages_client_enforcement(
@ -46,7 +46,7 @@ class IsolationProviderTest:
doc = Document(sample_doc)
p = provider.start_doc_to_pixels_proc(doc)
with pytest.raises(errors.MaxPagesException):
provider._convert(doc, tmpdir, None, p)
provider._convert(doc, None, p)
def test_max_dimensions(
self,
@ -60,12 +60,12 @@ class IsolationProviderTest:
doc = Document(sample_bad_width)
p = provider.start_doc_to_pixels_proc(doc)
with pytest.raises(errors.MaxPageWidthException):
provider._convert(doc, tmpdir, None, p)
provider._convert(doc, None, p)
doc = Document(sample_bad_height)
p = provider.start_doc_to_pixels_proc(doc)
with pytest.raises(errors.MaxPageHeightException):
provider._convert(doc, tmpdir, None, p)
provider._convert(doc, None, p)
class IsolationProviderTermination:

View file

@ -79,7 +79,7 @@ class TestQubes(IsolationProviderTest):
)
with pytest.raises(errors.ConverterProcException):
doc = Document(sample_doc)
provider._convert(doc, tmpdir, None, proc)
provider._convert(doc, None, proc)
assert provider.get_proc_exception(proc) == errors.QubesQrexecFailed