()
| 249 | |
| 250 | |
| 251 | def test_setenv_prepend() -> None: |
| 252 | import os |
| 253 | |
| 254 | monkeypatch = MonkeyPatch() |
| 255 | monkeypatch.setenv("XYZ123", "2", prepend="-") |
| 256 | monkeypatch.setenv("XYZ123", "3", prepend="-") |
| 257 | assert os.environ["XYZ123"] == "3-2" |
| 258 | monkeypatch.undo() |
| 259 | assert "XYZ123" not in os.environ |
| 260 | |
| 261 | |
| 262 | def test_monkeypatch_plugin(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected