File tree Expand file tree Collapse file tree 10 files changed +20
-20
lines changed
tests/pytest/package_manager Expand file tree Collapse file tree 10 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_android -o tests/result/android -m android"
88]
99
1010
1111def test_android_get_dependency (run_command ):
12- for command in GRADLE_COMMANDS :
12+ for command in COMMANDS :
1313 return_code , stdout , stderr = run_command (command )
1414 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_carthage -o tests/result/carthage -m carthage"
88]
99
1010
1111def test_carthage_get_dependency (run_command ):
12- for command in GRADLE_COMMANDS :
12+ for command in COMMANDS :
1313 return_code , stdout , stderr = run_command (command )
1414 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_cocoapods -o tests/result/cocoapods -m cocoapods"
88]
99
1010
1111def test_cocoapods_get_dependency (run_command ):
12- for command in GRADLE_COMMANDS :
12+ for command in COMMANDS :
1313 return_code , stdout , stderr = run_command (command )
1414 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle" ,
88 "fosslight_dependency -p tests/test_gradle2 -o tests/result/gradle2"
99]
1010
1111
1212def test_gradle_get_dependency (run_command ):
13- for command in GRADLE_COMMANDS :
13+ for command in COMMANDS :
1414 return_code , stdout , stderr = run_command (command )
1515 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_helm -o tests/result/helm -m helm"
88]
99
1010
1111def test_helm_get_dependency (run_command ):
12- for command in GRADLE_COMMANDS :
12+ for command in COMMANDS :
1313 return_code , stdout , stderr = run_command (command )
1414 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1" ,
88 "fosslight_dependency -p tests/test_maven2 -o tests/result/maven2"
99]
1010
1111
1212def test_maven_get_dependency (run_command ):
13- for command in GRADLE_COMMANDS :
13+ for command in COMMANDS :
1414 return_code , stdout , stderr = run_command (command )
1515 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_npm1 -o tests/result/npm1" ,
88 "fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm"
99]
1010
1111
1212def test_npm_get_dependency (run_command ):
13- for command in GRADLE_COMMANDS :
13+ for command in COMMANDS :
1414 return_code , stdout , stderr = run_command (command )
1515 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_nuget -o tests/result/nuget1" ,
88 "fosslight_dependency -p tests/test_nuget2 -o tests/result/nuget2"
99]
1010
1111
1212def test_nuget_get_dependency (run_command ):
13- for command in GRADLE_COMMANDS :
13+ for command in COMMANDS :
1414 return_code , stdout , stderr = run_command (command )
1515 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_pub -o tests/result/pub" ,
88 "fosslight_dependency -p tests/test_exclude -e requirements.txt -o tests/result/exclude"
99]
1010
1111
1212def test_pub_get_dependency (run_command ):
13- for command in GRADLE_COMMANDS :
13+ for command in COMMANDS :
1414 return_code , stdout , stderr = run_command (command )
1515 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
Original file line number Diff line number Diff line change 33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
55
6- GRADLE_COMMANDS = [
6+ COMMANDS = [
77 "fosslight_dependency -p tests/test_pypi -o tests/result/pypi" ,
88 "fosslight_dependency -p tests/test_multi_pypi_npm -o tests/result/multi_pypi_npm" ,
99 "fosslight_dependency -p tests/test_multi_pypi_npm -o tests/result/multi_pypi_npm -f opossum"
1010]
1111
1212
1313def test_pypi_get_dependency (run_command ):
14- for command in GRADLE_COMMANDS :
14+ for command in COMMANDS :
1515 return_code , stdout , stderr = run_command (command )
1616 assert return_code == 0 , f"Command failed: { command } \n stdout: { stdout } \n stderr: { stderr } "
You can’t perform that action at this time.
0 commit comments