(pytester: Pytester)
| 1092 | |
| 1093 | |
| 1094 | def test_logxml_changingdir(pytester: Pytester) -> None: |
| 1095 | pytester.makepyfile( |
| 1096 | """ |
| 1097 | def test_func(): |
| 1098 | import os |
| 1099 | os.chdir("a") |
| 1100 | """ |
| 1101 | ) |
| 1102 | pytester.mkdir("a") |
| 1103 | result = pytester.runpytest("--junitxml=a/x.xml") |
| 1104 | assert result.ret == 0 |
| 1105 | assert pytester.path.joinpath("a/x.xml").exists() |
| 1106 | |
| 1107 | |
| 1108 | def test_logxml_makedir(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected