diff --git a/edi_oca/tests/test_backend_output.py b/edi_oca/tests/test_backend_output.py index c6ec5a971b0..ffb5f295cf4 100644 --- a/edi_oca/tests/test_backend_output.py +++ b/edi_oca/tests/test_backend_output.py @@ -36,14 +36,14 @@ def setUp(self): FakeOutputChecker.reset_faked() def test_generate_record_output(self): - self.backend.with_context(fake_output="yeah!").exchange_generate(self.record) + self.record.with_context(fake_output="yeah!").action_exchange_generate() self.assertEqual(self.record._get_file_content(), "yeah!") def test_generate_record_output_pdf(self): - result = tools.file_open( + pdf_content = tools.file_open( "result.pdf", subdir="addons/edi_oca/tests", mode="rb" ).read() - self.backend.with_context(fake_output=result).exchange_generate(self.record) + self.record.with_context(fake_output=pdf_content).action_exchange_generate() def test_send_record(self): self.record.write({"edi_exchange_state": "output_pending"})