From 87a70c425f89da0738a9888dcbf6f7024018df4b Mon Sep 17 00:00:00 2001 From: Francesco Giordano Date: Mon, 26 Sep 2022 13:48:43 +0200 Subject: [PATCH] Fix code-linter B026 error in awsbatch-cli test Signed-off-by: Francesco Giordano --- awsbatch-cli/tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awsbatch-cli/tests/conftest.py b/awsbatch-cli/tests/conftest.py index 595265ff8b..826de6bcb1 100644 --- a/awsbatch-cli/tests/conftest.py +++ b/awsbatch-cli/tests/conftest.py @@ -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)