Test function behavior with modified environment variable using monkeypatch.setenv
Preconditions (2)
Step 1: Use monkeypatch.setenv to set 'APP_MODE' to 'test'
Step 2: Call the function that reads 'APP_MODE'
Step 3: Verify the function returns 'test'
Step 4: Use monkeypatch.setenv to set 'APP_MODE' to 'production'
Step 5: Call the function again
Step 6: Verify the function returns 'production'
✅ Expected Result: The function returns the environment variable value as set by monkeypatch.setenv in each case