def test_expand_environment_variables(monkeypatch, inp, out): monkeypatch.setenv("FOO", "foo") assert expand_environment_variables(inp) == out
def test_expand_environment_variables(inp, out): try: os.environ["FOO"] = "foo" assert expand_environment_variables(inp) == out finally: del os.environ["FOO"]
def test_expand_environment_variables(inp, out): try: os.environ["FOO"] = "foo" assert expand_environment_variables(inp) == out finally: del os.environ['FOO']