Skip to content

Commit

Permalink
[FIX] edi_webservice_oca: Adapt to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Sep 15, 2023
1 parent 594bdde commit f9e479c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion edi_webservice_oca/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ def _get_backend(cls):

@classmethod
def _setup_records(cls):
super()._setup_records()
result = super()._setup_records()
cls.filedata = base64.b64encode(b"This is a simple file")
vals = {
"model": cls.partner._name,
"res_id": cls.partner.id,
"exchange_file": cls.filedata,
}
cls.record = cls.backend.create_record("test_csv_output", vals)
return result
3 changes: 2 additions & 1 deletion edi_webservice_oca/tests/test_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class TestSend(TestEDIWebserviceBase):
@classmethod
def _setup_records(cls):
super()._setup_records()
result = super()._setup_records()
cls.ws_backend = cls.backend.webservice_backend_id
cls.settings1 = """
components:
Expand Down Expand Up @@ -40,6 +40,7 @@ def _setup_records(cls):
endpoint: push/here
"""
cls.record.type_id.set_settings(cls.settings1)
return result

def test_find_component(self):
component = self.backend._get_component(self.record, "send")
Expand Down

0 comments on commit f9e479c

Please sign in to comment.