Juergen Edelbluth
9b744d8b4c
- Fixing all the mypy warnings - Part 1 - Changed README - Breaking Change about parameter order - Tests for it
21 lines
469 B
Python
21 lines
469 B
Python
"""
|
|
Pytest Plugin Configuration
|
|
"""
|
|
from _pytest.config import Config
|
|
|
|
from _ptcsvp.plugin import Plugin
|
|
|
|
|
|
def pytest_configure(config: Config, plugin_name="csv_params") -> None:
|
|
"""
|
|
Register our Plugin
|
|
"""
|
|
config.pluginmanager.register(Plugin(config), f"{plugin_name}_plugin")
|
|
|
|
|
|
def pytest_unconfigure(config: Config, plugin_name="csv_params") -> None:
|
|
"""
|
|
Remove our Plugin
|
|
"""
|
|
config.pluginmanager.unregister(f"{plugin_name}_plugin")
|