(tempdir_factory, store, v)
| 185 | |
| 186 | @pytest.mark.parametrize('v', ('v1', 'v2')) |
| 187 | def test_repository_state_compatibility(tempdir_factory, store, v): |
| 188 | path = make_repo(tempdir_factory, 'python_hooks_repo') |
| 189 | |
| 190 | config = make_config_from_repo(path) |
| 191 | hook = _get_hook(config, store, 'foo') |
| 192 | envdir = lang_base.environment_dir( |
| 193 | hook.prefix, |
| 194 | python.ENVIRONMENT_DIR, |
| 195 | hook.language_version, |
| 196 | ) |
| 197 | os.remove(os.path.join(envdir, f'.install_state_{v}')) |
| 198 | assert _hook_installed(hook) is True |
| 199 | |
| 200 | |
| 201 | def test_unknown_keys(store, caplog): |
nothing calls this directly
no test coverage detected