(tmp_path)
| 41 | |
| 42 | @pytest.fixture |
| 43 | def local_config(tmp_path): |
| 44 | cfg_s = f"""\ |
| 45 | [flake8:local-plugins] |
| 46 | extension = |
| 47 | XE = {ExtensionTestPlugin.__module__}:{ExtensionTestPlugin.__name__} |
| 48 | report = |
| 49 | XR = {ReportTestPlugin.__module__}:{ReportTestPlugin.__name__} |
| 50 | """ |
| 51 | cfg = tmp_path.joinpath("tox.ini") |
| 52 | cfg.write_text(cfg_s) |
| 53 | |
| 54 | return str(cfg) |
| 55 | |
| 56 | |
| 57 | def test_enable_local_plugin_from_config(local_config): |
nothing calls this directly
no outgoing calls
no test coverage detected