Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

forge-mvc-testing

Infrastructure de test partagée pour le framework Forge (ADR-041).

Ce paquet réservé au développement fournit de quoi tester Forge, ses opt-ins officiels, et les opt-ins ou applications développés par des tiers :

  • FakeRequest : une fausse requête HTTP pour tester contrôleurs et helpers sans serveur ;
  • un plugin pytest (chargé automatiquement à l'installation) dont les fixtures autouse configurent le noyau Forge et réinitialisent l'état partagé entre tests (compteurs de tentatives, anti-replay, échecs d'audit).

Statut

forge-mvc-testing est en Development Status :: 4 - Beta, aligné sur la version du cœur. C'est un outil de développement : une application ne l'importe jamais à l'exécution.

Installation

pip install --pre forge-mvc-testing

En général comme dépendance de développement, par exemple dans requirements-dev.txt :

forge-mvc-testing

Utilisation

from forge_mvc_testing import FakeRequest

def test_mon_controleur():
    request = FakeRequest(method="GET", query={"page": "2"})
    response = MonControleur.index(request)
    assert response.status == 200

Le plugin pytest s'active dès que le paquet est installé : ses fixtures autouse préparent le noyau Forge et nettoient l'état partagé avant chaque test, sans configuration.

Licence

Distribué sous licence propriétaire Forge (LicenseRef-Forge-Proprietary), comme le reste du framework. Voir LICENSE.

Release files for forge-mvc-testing 1.0.0rc6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forge-mvc-testing 1.0.0rc6
File Size Uploaded
forge_mvc_testing-1.0.0rc6.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forge-mvc-testing 1.0.0rc6
File Interpreter ABI Platform
forge_mvc_testing-1.0.0rc6-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / forge_mvc_testing-1.0.0rc6.tar.gz

Download URL forge_mvc_testing-1.0.0rc6.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b476634aca3bdb2b923f663b2f3b6269d85057c4e8b2df63b0d0a605bbac4be6
BLAKE2b-256 checksum
How to use checksums
9d06e65b66db135cecb80cdd7882cceb824c26425a42c84f4f2f9fc26c6d6161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / forge_mvc_testing-1.0.0rc6-py3-none-any.whl

Download URL forge_mvc_testing-1.0.0rc6-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
686539b2f65fda50f41b2a57dc610f5fe4eef64c353366c1a1a7ceb9751cda64
BLAKE2b-256 checksum
How to use checksums
1bfb6425fb9ca378d4c738c82c60214cd122aa2b5aff4f8f935584993f69c492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page