Skip to content

Commit

Permalink
fixup! fixup! fixup! Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaniszewska-dev committed Oct 5, 2023
1 parent b2c95f3 commit 58a596a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pingen/tests/test_pingen.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ def test_pingen_push_document(self):

self.company._get_pingen_client()

attachment = self.env["ir.attachment"].search(
[("res_model", "=", "account.move")]
)[0]
attachment = self.env["ir.attachment"].create({
"name": "in_invoice_yourcompany_demo.pdf",
"datas": base64.b64encode(bytes("", "utf8")),
"type": "binary",
})
attachment.write({"send_to_pingen": True})
pingen_document = attachment.pingen_document_ids[0]
pingen_document = attachment.pingen_document_ids
pingen_document.push_to_pingen()
self.assertEqual(pingen_document.state, "pushed")

Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vcr
vcrpy
requests_mock
freezegun

0 comments on commit 58a596a

Please sign in to comment.