Skip to content

Commit d4479e5

Browse files
committed
rename constant value
Signed-off-by: yongjunhong <[email protected]>
1 parent 8d2092c commit d4479e5

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

tests/pytest/package_manager/test_android.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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

1111
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_carthage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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

1111
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_cocoapods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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

1111
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_gradle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

1212
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_helm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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

1111
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_maven.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

1212
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_npm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

1212
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_nuget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

1212
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_pub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

1212
def 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}\nstdout: {stdout}\nstderr: {stderr}"

tests/pytest/package_manager/test_pypi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
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

1313
def 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}\nstdout: {stdout}\nstderr: {stderr}"

0 commit comments

Comments
 (0)