Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PythonNest/PyNest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: PythonNest/PyNest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pr-136-resolution
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 11 files changed
  • 3 contributors

Commits on Jun 11, 2026

  1. feat: built-in testing module (PyNestTestingModule + TestBed) (#118)

    Adds nest.testing — a first-class testing toolkit modeled after
    @nestjs/testing and Suites:
    
    - PyNestTestingModule.create_testing_module(imports/controllers/providers)
      with fluent TestingModuleBuilder
    - override_provider(token).use_value/.use_class/.use_factory
    - override_guard(Guard).use_value/.use_class (patches applied only during
      route registration, restored immediately — no state leaks between tests)
    - use_auto_mock(): replaces class providers with create_autospec mocks
      (async methods become AsyncMocks), with exclude= and mock_factory=
    - TestingModule.get/init/close, awaitable compile(), async context manager
    - create_http_client() (httpx ASGITransport), create_test_client(),
      create_nest_application()
    - TestBed.solitary/sociable with .mock().using/.final and expose() for
      Suites-style unit tests without a container
    - PyNestContainer.replace_provider() + provider_descriptors hook
    - pynest-api[testing] extra (httpx); pytest-asyncio added to test group
    - docs/testing.md with pytest fixture patterns; 35 new tests
    
    Closes #118
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    ItayTheDar and claude committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    d25e9bb View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2026

  1. Configuration menu
    Copy the full SHA
    38e17b7 View commit details
    Browse the repository at this point in the history
Loading