-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Run the test test/test_file.py::File0Test::test_list_children
System : windows
Output report
_________________________________________________________________ File0Test.test_list_children _________________________________________________________________
self = <test.test_file.File0Test testMethod=test_list_children>
def test_list_children(self):
"""
test that children can be listed as dir/not_dir. Ignore hidden files as these
are not very standard
"""
top_dir = self.make_self_test_dir()
if Path(top_dir).exists():
FileLib.delete_directory_contents(top_dir, delete_directory=True)
assert not top_dir.exists()
top_dir.mkdir()
assert top_dir.exists()
dir1 = Path(top_dir, "dir1")
dir1.mkdir()
assert dir1.exists()
file1 = Path(top_dir, "file1")
file1.touch()
assert file1.exists()
files = [str(f) for f in FileLib.get_children(top_dir)]
> assert sorted(files) == ['/Users/pm286/workspace/amilib/temp/test_files/dir1',
'/Users/pm286/workspace/amilib/temp/test_files/file1']
E AssertionError: assert ['C:\\Users\\...files\\file1'] == ['/Users/pm28..._files/file1']
E
E At index 0 diff: 'C:\\Users\\ADMIN\\Desktop\\semantic_toolkit\\amilib\\temp\\test_files\\dir1' != '/Users/pm286/workspace/amilib/temp/test_files/dir1'
E Use -v to get more diff
test\test_file.py:110: AssertionError
=================================================================== short test summary info ====================================================================
FAILED test/test_file.py::File0Test::test_list_children - AssertionError: assert ['C:\\Users\\...files\\file1'] == ['/Users/pm28..._files/file1']
====================================================================== 1 failed in 2.02s ====
Metadata
Metadata
Assignees
Labels
No labels