Skip to content

Commit cdf2c62

Browse files
committed
Changes to use black Python formatter
1 parent 3479485 commit cdf2c62

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

tests/dependency_writers/gift_copr.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ def testFormatRPMTestDependencies(self):
8686
"""Tests the _FormatRPMTestDependencies function."""
8787
test_writer = self._CreateTestWriter()
8888

89-
expected_formatted_test_dependencies = (
90-
"TEST_DEPENDENCIES=\"python3-pbr\n"
91-
" python3-setuptools\";"
89+
expected_formatted_test_dependencies = "".join(
90+
[
91+
'TEST_DEPENDENCIES="python3-pbr\n',
92+
' python3-setuptools";',
93+
]
9294
)
9395

9496
python_dependencies = test_writer._GetRPMPythonDependencies()

tests/dependency_writers/gift_ppa.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ def testFormatDPKGTestDependencies(self):
8383
"""Tests the _FormatDPKGTestDependencies function."""
8484
test_writer = self._CreateTestWriter()
8585

86-
expected_formatted_test_dependencies = (
87-
"TEST_DEPENDENCIES=\"python3-pbr\n"
88-
" python3-setuptools\";"
86+
expected_formatted_test_dependencies = "".join(
87+
[
88+
'TEST_DEPENDENCIES="python3-pbr\n',
89+
' python3-setuptools";',
90+
]
8991
)
9092

9193
python_dependencies = test_writer._GetDPKGPythonDependencies()

tests/dependency_writers/linux_scripts.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ def testFormatDPKGTestDependencies(self):
8383
"""Tests the _FormatDPKGTestDependencies function."""
8484
test_writer = self._CreateTestWriter()
8585

86-
expected_formatted_test_dependencies = (
87-
"TEST_DEPENDENCIES=\"python3-pbr\n"
88-
" python3-setuptools\";"
86+
expected_formatted_test_dependencies = "".join(
87+
[
88+
'TEST_DEPENDENCIES="python3-pbr\n',
89+
' python3-setuptools";',
90+
]
8991
)
9092

9193
python_dependencies = test_writer._GetDPKGPythonDependencies()

0 commit comments

Comments
 (0)