Skip to content

Commit

Permalink
test: concatenate string literals
Browse files Browse the repository at this point in the history
`ruff format` found consecutive string literals that could be combined.
  • Loading branch information
bdrung authored and schopin-pro committed Feb 28, 2025
1 parent 24f307b commit d38a3ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_fileutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def test_get_config(self) -> None:

# nonempty
f.write(
b"[main]\none=1\ntwo = TWO\nb1 = 1\nb2=False\n" b"[spethial]\none= 99\n"
b"[main]\none=1\ntwo = TWO\nb1 = 1\nb2=False\n[spethial]\none= 99\n"
)
f.flush()
self.assertIsNone(apport.fileutils.get_config("main", "foo"))
Expand Down
4 changes: 2 additions & 2 deletions tests/system/test_packaging_apt_dpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,15 @@ def test_create_sources_for_a_named_ppa(
if {"deb", "deb-src"} == set(e.types)
and "jammy" in e.suites
and "main" in e.comps
and "http://ppa.launchpad.net/" "daisy-pluckers/daisy-seeds/ubuntu" in e.uris
and "http://ppa.launchpad.net/daisy-pluckers/daisy-seeds/ubuntu" in e.uris
]
assert [
e
for e in entries
if "deb" in e.types
and "jammy" in e.suites
and "main/debug" in e.comps
and "http://ppa.launchpad.net/" "daisy-pluckers/daisy-seeds/ubuntu" in e.uris
and "http://ppa.launchpad.net/daisy-pluckers/daisy-seeds/ubuntu" in e.uris
]

trusted_gpg_d = pathlib.Path(rootdir) / "etc" / "apt" / "trusted.gpg.d"
Expand Down

0 comments on commit d38a3ed

Please sign in to comment.