-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): ruff formatting fixed
- Loading branch information
Showing
8 changed files
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <[email protected]> | ||
# SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
@@ -469,6 +469,7 @@ def test_date_time(): | |
assert error.args[4] == "RFCTIME" | ||
assert error.args[5] == "IMPORTSTRUCT" | ||
|
||
|
||
def test_date_time_no_check(): | ||
conn = Connection(config={"check_date": False, "check_time": False}, **CONNECTION_INFO) | ||
DATETIME_TEST = [ | ||
|
@@ -492,8 +493,8 @@ def test_date_time_no_check(): | |
{"RFCDATE": "20161231", "RFCTIME": 123456}, # wrong time type | ||
] | ||
for index, dt in enumerate(DATETIME_TEST): | ||
print(index, dt) | ||
if index not in (11,17): | ||
# print(index, dt) | ||
if index not in (11, 17): | ||
res = conn.call("STFC_STRUCTURE", IMPORTSTRUCT=dt)["ECHOSTRUCT"] | ||
assert dt["RFCDATE"][:8] in res["RFCDATE"] | ||
if dt["RFCTIME"] == "": | ||
|
@@ -517,7 +518,6 @@ def test_date_time_no_check(): | |
assert error.args[5] == "IMPORTSTRUCT" | ||
|
||
|
||
|
||
def test_date_accepts_string(): | ||
TEST_DATE = "20180625" | ||
IMPORTSTRUCT = {"RFCDATE": TEST_DATE} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters