Testing¶
pytest-vendor-fabric is the supported pytest plugin for projects
that test code built on Vendor Fabric.
pip install pytest-vendor-fabric
The plugin registers the e2e marker, the --e2e CLI option, and
seven fixtures:
Fixture / hook |
Purpose |
|---|---|
|
A |
|
Common kwargs for connector construction:
|
|
Returns |
|
Skips the test when |
|
Skips the test when |
|
Skips the test when neither |
|
Adds a |
def test_connector(base_connector_kwargs):
assert base_connector_kwargs["from_environment"] is False
def test_live_provider(check_api_key):
assert check_api_key is None
def test_mocked_connector(mock_logger):
assert mock_logger.logger is not None
E2E tests are skipped unless --e2e is passed. They may call paid
provider APIs and require provider credentials:
pytest --e2e
The repository’s providers tox environment installs optional SDK extras
for AWS, Google, GitHub, Slack, Vault, and SecretSync unit tests:
tox -e providers
This gate is part of CI and CD release verification. It does not enable live
E2E tests; those still require --e2e and credentials.
Agent runtime fixtures, framework-specific agent execution, and runner
selection live in pytest-agentic-fabric. This plugin stays focused on
provider-facing test support.