Skip to content

Commit eb49274

Browse files
committed
Removed test that needs to be rearchitected due to subprocess limitations
1 parent 52cb119 commit eb49274

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

tools/test/test_api/test_api_test.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -59,39 +59,3 @@ def test_find_tests_app_config(base_dir, target, toolchain_name, app_config):
5959
"prepare_toolchain was not called with app_config"
6060
assert args[1]['app_config'] == app_config,\
6161
"prepare_toolchain was called with an incorrect app_config"
62-
63-
64-
@pytest.mark.parametrize("build_path", ["build_path"])
65-
@pytest.mark.parametrize("target", ["K64F"])
66-
@pytest.mark.parametrize("toolchain_name", ["ARM"])
67-
@pytest.mark.parametrize("app_config", ["app_config", None])
68-
def test_find_tests_app_config(build_path, target, toolchain_name, app_config):
69-
"""
70-
Test find_tests for correct use of app_config
71-
72-
:param base_dir: dummy value for the test base directory
73-
:param target: the target to "test" for
74-
:param toolchain_name: the toolchain to use for "testing"
75-
:param app_config: Application configuration parameter to find tests
76-
"""
77-
tests = {'test1': 'test1_path','test2': 'test2_path'}
78-
src_paths = ['.']
79-
set_targets_json_location()
80-
with patch('tools.test_api.scan_resources') as mock_scan_resources,\
81-
patch('tools.test_api.build_project') as mock_build_project,\
82-
patch('tools.test_api.get_config') as mock_get_config:
83-
mock_build_project.return_value = "build_project"
84-
mock_scan_resources().inc_dirs.return_value = []
85-
mock_get_config.return_value = ({}, "", "")
86-
87-
build_tests(tests, src_paths, build_path, target, toolchain_name,
88-
app_config=app_config)
89-
90-
arg_list = mock_build_project.call_args_list
91-
for args in arg_list:
92-
assert 'app_config' in args[1],\
93-
"build_tests was not called with app_config"
94-
assert args[1]['app_config'] == app_config,\
95-
"build_tests was called with an incorrect app_config"
96-
mock_get_config.called_with(src_paths, target,
97-
toolchain_name, app_conifg=app_config)

0 commit comments

Comments
 (0)