Skip to content

Commit 87a70c4

Browse files
Fix code-linter B026 error in awsbatch-cli test
Signed-off-by: Francesco Giordano <[email protected]>
1 parent e2888c3 commit 87a70c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awsbatch-cli/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def _convert_to_date_utc(*args, **kwargs):
6262

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

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

0 commit comments

Comments
 (0)