コード例 #1
0
ファイル: test_cli.py プロジェクト: will-ockmore/tmuxp
def test_get_cwd(tmpdir):
    assert cli.get_cwd() == os.getcwd()

    with tmpdir.as_cwd():
        assert cli.get_cwd() == str(tmpdir)
        assert cli.get_cwd() == os.getcwd()
コード例 #2
0
ファイル: test_cli.py プロジェクト: marquisthunder/tmuxp
def test_get_cwd(tmpdir):
    assert cli.get_cwd() == os.getcwd()

    with tmpdir.as_cwd():
        assert cli.get_cwd() == str(tmpdir)
        assert cli.get_cwd() == os.getcwd()