Skip to content

PTHMINT-94: Remove changes not needed in tests#48

Merged
danielcivit merged 1 commit intoPTHMINT-94from
PTHMINT-94-B
Mar 4, 2026
Merged

PTHMINT-94: Remove changes not needed in tests#48
danielcivit merged 1 commit intoPTHMINT-94from
PTHMINT-94-B

Conversation

@danielcivit
Copy link
Member

No description provided.

@danielcivit danielcivit marked this pull request as ready for review March 4, 2026 14:43
@danielcivit danielcivit merged commit c08d90f into PTHMINT-94 Mar 4, 2026
@danielcivit danielcivit deleted the PTHMINT-94-B branch March 4, 2026 14:43
zulquer added a commit that referenced this pull request Mar 5, 2026
* PTHMINT:94: Introduce transport abstraction and examples

Add a pluggable HTTP transport layer so callers can inject custom HTTP clients. Introduces src/multisafepay/transport (HTTP transport interface, RequestsTransport and underlying http transport), updates SDK and client to accept/select a transport, and adds example transports for httpx, requests.Session and urllib3 (including a response adapter). Includes new unit/e2e tests and test helpers for transport selection and mocks, plus minor README/pyproject tweaks.

* PTHMINT-94: Use Optional types and standardize docstrings

Annotate client methods' context parameter as Optional[dict[str, Any]] and standardize parameter/type annotations in HTTPTransport and RequestsTransport docstrings (consistently use parenthetical param types and shorter, PEP-484-like type expressions). These edits improve typing clarity and make the transport docs consistent and easier to read.

* PTHMINT-94: Add OSLv3 license headers to tests

Add copyright, Open Software License (OSL) v3.0 and disclaimer header comments to several test and support modules for legal/attribution purposes. Affected files: tests/multisafepay/e2e/examples/transport/test_custom_httpx_transport.py, tests/multisafepay/e2e/examples/transport/test_custom_requests_session_transport.py, tests/multisafepay/e2e/examples/transport/test_custom_urllib3_transport.py, tests/multisafepay/unit/transport/test_unit_transport_selection.py, tests/support/alt_http_transports.py, tests/support/mock_transport.py. No functional code changes.

* PTHMINT-94: Remove changes not needed in tests (#48)

* Fix pyproject.toml

* Document transport options and add requests extra

Expand README with an optional HTTP transport section detailing the transport abstraction, how to use the built-in RequestsTransport (multisafepay[requests]) or provide a custom transport, and a small example. Update example import to use from multisafepay import Sdk. Tweak RequestsTransport's ModuleNotFoundError message to also suggest installing requests directly. Update poetry.lock to reflect the new optional extra and lockfile checksum.

* Release of 3.0.0

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update CHANGELOG.md

---------

Co-authored-by: Daniel Civit <daniel.civit@multisafepay.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant