MCPcopy
hub / github.com/pallets/werkzeug / test_windows_get_args_for_reloading

Function test_windows_get_args_for_reloading

tests/test_serving.py:184–193  ·  view source on GitHub ↗
(
    monkeypatch: pytest.MonkeyPatch, tmp_path: Path
)

Source from the content-addressed store, hash-verified

182
183@pytest.mark.skipif(sys.version_info >= (3, 10), reason="not needed on >= 3.10")
184def test_windows_get_args_for_reloading(
185 monkeypatch: pytest.MonkeyPatch, tmp_path: Path
186) -> None:
187 argv = [str(tmp_path / "test.exe"), "run"]
188 monkeypatch.setattr("sys.executable", str(tmp_path / "python.exe"))
189 monkeypatch.setattr("sys.argv", argv)
190 monkeypatch.setattr("__main__.__package__", None)
191 monkeypatch.setattr("os.name", "nt")
192 rv = _get_args_for_reloading()
193 assert rv == argv
194
195
196@pytest.mark.parametrize("find", [_find_stat_paths, _find_watchdog_paths])

Callers

nothing calls this directly

Calls 1

_get_args_for_reloadingFunction · 0.90

Tested by

no test coverage detected