Skip to content

Commit

Permalink
test datos_extra
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Dec 14, 2024
1 parent 3513f96 commit 85f0fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ src_paths = ["django_payments_chile", "tests"]


[tool.coverage.report]
exclude_lines = ["if TYPE_CHECKING:"]
exclude_lines = ["if TYPE_CHECKING:", "# noqa", "# nosec"]

[tool.django-stubs]
django_settings_module = "tests.django_settings"
Expand Down
2 changes: 2 additions & 0 deletions tests/test_flowprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class payment_attrs:
session = dict
extra_data = dict


class Payment(Mock):
Expand Down Expand Up @@ -48,6 +49,7 @@ def get_success_url(self):
class TestFlowProviderLive(TestCase):
def test_provider_create_session_success(self):
test_payment = Payment()
test_payment.attrs.datos_extra = {"payment_currency": "CLP"}
provider = FlowProvider(api_key=API_KEY, api_secret=API_SECRET)
with patch("django_payments_chile.FlowProvider.requests.post") as mock_post:
# Configure mock response
Expand Down

0 comments on commit 85f0fe7

Please sign in to comment.