Exemplo n.º 1
0
def test_expand_paths_vars(test_path, expected, monkeypatch):
    """Ensure that tilde and env vars are expanded in paths lists."""
    monkeypatch.setenv('TEST_PATH', '/test/path')
    assert expand_paths_vars([test_path]) == [expected]
Exemplo n.º 2
0
def test_expand_paths_vars(test_path: Union[str, Path], expected: str,
                           monkeypatch: MonkeyPatch) -> None:
    """Ensure that tilde and env vars are expanded in paths lists."""
    monkeypatch.setenv('TEST_PATH', '/test/path')
    assert expand_paths_vars([test_path]) == [expected]  # type: ignore