MCPcopy Create free account
hub / github.com/ARMmbed/mbed-cli / test_sync_update_remove

Function test_sync_update_remove

test/sync_update_test.py:37–57  ·  view source on GitHub ↗
(mbed, testrepos)

Source from the content-addressed store, hash-verified

35
36# Tests if removing a library is carried over sync/update
37def test_sync_update_remove(mbed, testrepos):
38 test1 = testrepos[0]
39 popen(['python', mbed, 'import', test1, 'testimport', '-vv'])
40
41 with cd('test1/test2'):
42 remove('test3')
43 popen(['python', mbed, 'sync', '-vv'])
44 mkcommit()
45
46 with cd('test1'):
47 popen(['python', mbed, 'sync', '-vv'])
48 mkcommit()
49
50 with cd('testimport'):
51 popen(['python', mbed, 'update', '-vv'])
52
53 assertls(mbed, 'testimport', [
54 "[mbed]",
55 "testimport",
56 "`- test2",
57 ])
58
59# Tests if adding a library is carried over sync/update
60def test_sync_update_add(mbed, testrepos):

Callers

nothing calls this directly

Calls 5

mkcommitFunction · 0.85
assertlsFunction · 0.85
popenFunction · 0.70
cdFunction · 0.70
removeFunction · 0.70

Tested by

no test coverage detected