Skip to content

Commit afde54c

Browse files
Tests are updated (typing)
1 parent 50c5950 commit afde54c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_os_ops_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ def LOCAL_WORKER(os_ops: OsOperations,
10011001

10021002
assert os.path.exists(lock_dir)
10031003

1004-
def LOG_INFO(template: str, *args: list) -> None:
1004+
def LOG_INFO(template: str, *args) -> None:
10051005
assert type(template) == str # noqa: E721
10061006
assert type(args) == tuple # noqa: E721
10071007

tests/test_os_ops_remote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_rmdirs__try_to_delete_file(self, os_ops: OsOperations):
3333

3434
assert os.path.exists(path)
3535
assert type(x.value) == ExecUtilException # noqa: E721
36+
assert type(x.value.description) == str # noqa: E721
3637
assert x.value.description == "Utility exited with non-zero code (20). Error: `cannot remove '" + path + "': it is not a directory`"
3738
assert x.value.message.startswith(x.value.description)
3839
assert type(x.value.error) == str # noqa: E721

0 commit comments

Comments
 (0)