Jeden Skill in Manus ausführen
mit einem Klick
mit einem Klick
Jeden Skill in Manus mit einem Klick ausführen
Loslegen$pwd:
$ git log --oneline --stat
stars:191
forks:36
updated:26. April 2026 um 04:15
Datei-Explorer
SKILL.md
| name | test-writer |
| description | Writes tests using IoC overrides and test factories. |
| version | 1.0.0 |
Use this skill to write focused tests for the current project structure.
| Test Type | Location |
|---|---|
| FastAPI integration | tests/integration/core/<domain>/delivery/fastapi/ |
| Celery integration | tests/integration/core/<domain>/delivery/celery/ |
| Core unit tests | tests/unit/core/<domain>/... |
| Infrastructure unit tests | tests/unit/infrastructure/<adapter>/... |
| Architecture tests | tests/architecture/ |
Base test factory classes live in tests/foundation/factories.py.
TestClientFactoryTestUserFactoryTestCeleryWorkerFactoryTestTasksRegistryFactorymock_service = MagicMock(spec=SomeService)
container.add_instance(mock_service, provides=SomeService)
test_client_factory = TestClientFactory(container=container)
Create overrides before resolving the target factory or controller.
@pytest.mark.django_db(transaction=True)
def test_endpoint(
test_client_factory: TestClientFactory,
user: User,
) -> None:
with test_client_factory(auth_for_user=user) as client:
response = client.get("/v1/users/me")
assert response.status_code == HTTPStatus.OK
registry = tasks_registry_factory()
with celery_worker_factory():
result = registry.ping.delay().get(timeout=10)
assert result == {"result": "pong"}
make test
uv run pytest tests/integration/core/user/delivery/fastapi/test_controllers.py
uv run pytest tests/integration/core/health/delivery/celery/test_tasks.py
uv run pytest tests/architecture/
Detailed references:
references/mock-patterns.mdreferences/test-scenarios.mddocs/en/tutorial/06-testing.mddocs/en/how-to/override-ioc-in-tests.md