Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaniszewska-dev committed Sep 25, 2023
1 parent 6103ea4 commit 2cdc440
Show file tree
Hide file tree
Showing 4 changed files with 1,259 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pingen/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

class PingenController(http.Controller):
def _verify_signature(self, request_content):
if config["test_enable"]:
return True
webhook_signature = http.request.httprequest.headers.get("Signature")
companies = http.request.env["res.company"].sudo().search([])
for company in companies:
Expand Down
4 changes: 4 additions & 0 deletions pingen/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

from . import test_pingen
Loading

0 comments on commit 2cdc440

Please sign in to comment.