()
| 222 | |
| 223 | |
| 224 | def test_setenv_prepend() -> None: |
| 225 | import os |
| 226 | |
| 227 | monkeypatch = MonkeyPatch() |
| 228 | monkeypatch.setenv("XYZ123", "2", prepend="-") |
| 229 | monkeypatch.setenv("XYZ123", "3", prepend="-") |
| 230 | assert os.environ["XYZ123"] == "3-2" |
| 231 | monkeypatch.undo() |
| 232 | assert "XYZ123" not in os.environ |
| 233 | |
| 234 | |
| 235 | def test_monkeypatch_plugin(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected