Skip to content

Commit

Permalink
black fmt updates
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonsteiner committed Jan 7, 2025
1 parent a1deb4d commit be1f9eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion jenkinsapi/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def validate_for_build(self, filename: str, job: str, build: int) -> bool:
msg = (
"This artifact was generated by %s "
"between build %i and %i"
% (job, range_["start"], range_["end"])
% (
job,
range_["start"],
range_["end"],
)
)
log.info(msg=msg)
return True
Expand Down
16 changes: 8 additions & 8 deletions jenkinsapi_tests/unittests/test_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def fake_poll(cls, tree=None): # pylint: disable=unused-argument
monkeypatch.setattr(JenkinsBase, "_poll", fake_poll)

def fake_validate(
cls, filename, job, build # pylint: disable=unused-argument
): # pylint: disable=unused-argument
cls, filename, job, build
): # pylint: disable=unused-argument # pylint: disable=unused-argument
return True

monkeypatch.setattr(Fingerprint, "validate_for_build", fake_validate)
Expand All @@ -56,8 +56,8 @@ def fake_poll(cls, tree=None): # pylint: disable=unused-argument
monkeypatch.setattr(JenkinsBase, "_poll", fake_poll)

def fake_validate(
cls, filename, job, build # pylint: disable=unused-argument
): # pylint: disable=unused-argument
cls, filename, job, build
): # pylint: disable=unused-argument # pylint: disable=unused-argument
return filename == "artifact.zip"

monkeypatch.setattr(Fingerprint, "validate_for_build", fake_validate)
Expand Down Expand Up @@ -87,8 +87,8 @@ def fake_poll(cls, tree=None): # pylint: disable=unused-argument
monkeypatch.setattr(JenkinsBase, "_poll", fake_poll)

def fake_validate(
cls, filename, job, build # pylint: disable=unused-argument
): # pylint: disable=unused-argument
cls, filename, job, build
): # pylint: disable=unused-argument # pylint: disable=unused-argument
return True

monkeypatch.setattr(Fingerprint, "validate_for_build", fake_validate)
Expand Down Expand Up @@ -138,8 +138,8 @@ def fake_poll(cls, tree=None): # pylint: disable=unused-argument
monkeypatch.setattr(JenkinsBase, "_poll", fake_poll)

def fake_validate(
cls, filename, job, build # pylint: disable=unused-argument
): # pylint: disable=unused-argument
cls, filename, job, build
): # pylint: disable=unused-argument # pylint: disable=unused-argument
return False

monkeypatch.setattr(Fingerprint, "validate_for_build", fake_validate)
Expand Down

0 comments on commit be1f9eb

Please sign in to comment.