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.0rc4

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.0rc4
File Size Uploaded
forge_mvc_testing-1.0.0rc4.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 15.1 kB

Release files / forge_mvc_testing-1.0.0rc4.tar.gz

Download URL forge_mvc_testing-1.0.0rc4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
de89f17a2bf9435459e41e54d37be7f2e2c70d9fde55a5115c0a502fa303954d
BLAKE2b-256 checksum
How to use checksums
a057a1378d6e325fe0a3bbc6a3a676b9e5644a5cf8977ac84a64238925db4b6f
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.0rc4-py3-none-any.whl

Download URL forge_mvc_testing-1.0.0rc4-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7a6e2c43fd0770ba7efa01d8ac5317334ae0528b5588956cad35fa79779d91b
BLAKE2b-256 checksum
How to use checksums
1db134a64c6e81477eb3a0f5076b95344813a7e73bcb9e9c44f3906256151313
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