functional2: forbid chdir and setting environment

These are a footgun and are not acceptable in functional2 due to thread
safety, effects on other tests, etc.

Co-authored-by: Commentator2.0 <lix@crystal-cavern.systems>

Change-Id: I8d7285061eaa9bab27edd52f3646024c8cf605e5
This commit is contained in:
Jade Lovelace
2025-10-13 18:30:51 +02:00
committed by Commentator2.0
parent 844feb17b5
commit 556012e409
10 changed files with 93 additions and 19 deletions
@@ -1,6 +1,5 @@
import pytest
from _pytest.fixtures import FixtureRequest
from functional2.testlib.fixtures.command import Command
from functional2.testlib.fixtures.env import ManagedEnv