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

Function test_remove

test/remove_test.py:16–23  ·  view source on GitHub ↗
(mbed, testrepos)

Source from the content-addressed store, hash-verified

14
15# Tests the result of 'mbed remove'
16def test_remove(mbed, testrepos):
17 with cd('test1'):
18 popen(['python', mbed, 'remove', 'test2'])
19
20 assertls(mbed, 'test1', [
21 "[mbed]",
22 "test1",
23 ])
24
25# Tests if a repo can be imported correctly after 'mbed remove'
26def test_import_after_remove(mbed, testrepos):

Callers 1

test_import_after_removeFunction · 0.85

Calls 3

assertlsFunction · 0.85
cdFunction · 0.70
popenFunction · 0.70

Tested by

no test coverage detected