Skip to content

Commit 6b4a4b2

Browse files
committed
Correct test_tutorial to use '/' in filepaths on all platforms
Note that target filepaths specified in the repo use '/' even on Windows. (That property is important to make sure that metadata is platform- independent.) Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
1 parent f7f003d commit 6b4a4b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_tutorial.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,10 @@ def test_tutorial(self):
237237
octal_file_permissions = oct(os.stat(target4_filepath).st_mode)[4:]
238238
custom_file_permissions = {'file_permissions': octal_file_permissions}
239239
repository.targets.add_target(target4_filepath, custom_file_permissions)
240-
self.assertTrue(os.path.join(
241-
'myproject', 'file4.txt') in repository.targets.target_files)
240+
# Note that target filepaths specified in the repo use '/' even on Windows.
241+
# (This is important to make metadata platform-independent.)
242+
self.assertTrue(
243+
os.path.join('myproject/file4.txt') in repository.targets.target_files)
242244

243245

244246
# Skipping user entry of password

0 commit comments

Comments
 (0)