Skip to content

Commit

Permalink
tests/diff: use os.path.join instead of implying separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Jan 26, 2020
1 parent 5ace747 commit 3db983f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/func/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ def test_directories(tmp_dir, scm, dvc):
assert dvc.diff(":/init", ":/directory") == {
"added": [
{
"filename": "dir/",
"filename": os.path.dir("dir", ""),
"checksum": "5fb6b29836c388e093ca0715c872fe2a.dir",
},
{"filename": os.path.join("dir", "1"), "checksum": digest("1")},
{"filename": "dir/2", "checksum": digest("2")},
{"filename": os.path.join("dir", "2"), "checksum": digest("2")},
],
"deleted": [],
"modified": [],
Expand Down

0 comments on commit 3db983f

Please sign in to comment.