Skip to content

Commit

Permalink
Making linters happy -- rebase when ready to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Oct 23, 2023
1 parent b4cfb95 commit ed37785
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion apport/hookutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ def attach_dmi(report):

def attach_udevdb(report):
"""Attach UdevDb with anonymized partition labels"""

udevdb = command_output(["udevadm", "info", "--export-db"])

# anonymize partition labels
Expand Down
8 changes: 1 addition & 7 deletions tests/unit/test_hookutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,7 @@ def _attach_udevdb(report):
print("collecting")
report["UdevDb"] = expected_kv_pairs["UdevDb"]

def _attach_file(
report,
path,
key=None,
overwrite=True,
force_unicode=False,
):
def _attach_file(report, path, key=None, overwrite=True, force_unicode=False):
if key is None:
key = apport.hookutils.path_to_key(path)

Check warning on line 164 in tests/unit/test_hookutils.py

View check run for this annotation

Codecov / codecov/patch

tests/unit/test_hookutils.py#L164

Added line #L164 was not covered by tests
report[key] = f"mocked {path}"
Expand Down

0 comments on commit ed37785

Please sign in to comment.