MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_with_specific_inifile

Method test_with_specific_inifile

testing/test_config.py:1402–1411  ·  view source on GitHub ↗
(
        self, tmp_path: Path, name: str, contents: str
    )

Source from the content-addressed store, hash-verified

1400 ],
1401 )
1402 def test_with_specific_inifile(
1403 self, tmp_path: Path, name: str, contents: str
1404 ) -> None:
1405 p = tmp_path / name
1406 p.touch()
1407 p.write_text(contents, "utf-8")
1408 rootpath, inipath, ini_config = determine_setup(str(p), [str(tmp_path)])
1409 assert rootpath == tmp_path
1410 assert inipath == p
1411 assert ini_config == {"x": "10"}
1412
1413 def test_explicit_config_file_sets_rootdir(
1414 self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch

Callers

nothing calls this directly

Calls 1

determine_setupFunction · 0.90

Tested by

no test coverage detected