Skip to content

Commit

Permalink
Fix code-linter B026 error in awsbatch-cli test
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Giordano <[email protected]>
  • Loading branch information
francesco-giordano committed Sep 26, 2022
1 parent e2888c3 commit 87a70c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awsbatch-cli/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def _convert_to_date_utc(*args, **kwargs):

# executes convert_to_date but overrides arguments so that timezone is enforced to utc
if "timezone" in kwargs:
del kwargs["timezone"]
return convert_to_date(timezone=tz.tzutc(), *args, **kwargs)
kwargs["timezone"] = tz.tzutc()
return convert_to_date(*args, **kwargs)

return mocker.patch("awsbatch." + module_under_test + ".convert_to_date", wraps=_convert_to_date_utc)

Expand Down

0 comments on commit 87a70c4

Please sign in to comment.