Skip to content

Commit

Permalink
tests: do not use as_posix to check for output
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Aug 20, 2024
1 parent 6a345ff commit e8403fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/func/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,7 @@ def test_import_no_hash(tmp_dir, scm, dvc, erepo_dir, mocker):
erepo_dir.dvc_gen("foo", "foo content", commit="create foo")

spy = mocker.spy(hash, "file_md5")
dvc.imp(os.fspath(erepo_dir), "foo", "foo_imported")
out_path = (tmp_dir / "foo_imported").as_posix()
stage = dvc.imp(os.fspath(erepo_dir), "foo", "foo_imported")
assert spy.call_count == 1
for call in spy.call_args_list:
assert out_path != call.args[0]
assert stage.outs[0].fs_path != call.args[0]

0 comments on commit e8403fa

Please sign in to comment.