clack.pytest_plugin module
A pytest plugin for testing the clack package.
This plugin can be enabled via the pytest_plugins conftest.py variable. This allows us to use this plugin in external packages’ tests instead of just for this package’s tests.
Examples
The following line should be found in the “tests/conftest.py” file:
>>> pytest_plugins = ["clack.pytest_plugin"]
- class MakeConfigFile(*args, **kwargs)[source]
Bases:
ProtocolType of the function returned by make_config_file().
- make_config_file_fixture(request, tmp_path_factory)[source]
Returns a function that can be used to generate ClackConfigFile objects.
The associated config file is first instantiated using the ‘kwargs’ provided by the caller.
- Parameters:
request (
SubRequest) –tmp_path_factory (
TempPathFactory) –
- Return type: