Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ARMmbed/mbed-cli
/ cd
Function
cd
test/util.py:48–54 ·
view source on GitHub ↗
(newdir)
Source
from the content-addressed store, hash-verified
46
# Directory navigation
47
@contextlib.contextmanager
48
def
cd(newdir):
49
prevdir = os.getcwd()
50
os.chdir(newdir)
51
try
:
52
yield
53
finally:
54
os.chdir(prevdir)
55
56
# Handling test environment
57
@pytest.fixture
Callers
11
test_remove
Function · 0.70
test_sync_update
Function · 0.70
test_sync_update_remove
Function · 0.70
test_sync_update_add
Function · 0.70
test_sync_update_move
Function · 0.70
mkgit
Function · 0.70
mkhg
Function · 0.70
assertls
Function · 0.70
mkcommit
Function · 0.70
testrepos
Function · 0.70
test_add
Function · 0.70
Calls
no outgoing calls
Tested by
6
test_remove
Function · 0.56
test_sync_update
Function · 0.56
test_sync_update_remove
Function · 0.56
test_sync_update_add
Function · 0.56
test_sync_update_move
Function · 0.56
test_add
Function · 0.56