diff --git a/pyproject.toml b/pyproject.toml index 5534e52..aa88268 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/tests/test_flowprovider.py b/tests/test_flowprovider.py index 158aa1d..2e3bd3e 100644 --- a/tests/test_flowprovider.py +++ b/tests/test_flowprovider.py @@ -12,6 +12,7 @@ class payment_attrs: session = dict + extra_data = dict class Payment(Mock): @@ -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