()
| 197 | |
| 198 | |
| 199 | def test_setenv() -> None: |
| 200 | monkeypatch = MonkeyPatch() |
| 201 | with pytest.warns(pytest.PytestWarning): |
| 202 | monkeypatch.setenv("XYZ123", 2) # type: ignore[arg-type] |
| 203 | import os |
| 204 | |
| 205 | assert os.environ["XYZ123"] == "2" |
| 206 | monkeypatch.undo() |
| 207 | assert "XYZ123" not in os.environ |
| 208 | |
| 209 | |
| 210 | def test_delenv() -> None: |
nothing calls this directly
no test coverage detected