Skip to content

Commit c89f6af

Browse files
Fix test assertion to match actual error message format
Reverted test_move_not_dandiset assertion to match the actual error message format from the code. The previous commit e19a1cc incorrectly changed the test to expect a different format than what the code produces. Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>
1 parent 08dcb84 commit c89f6af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dandi/tests/test_move.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,8 @@ def test_move_not_dandiset(
770770
with pytest.raises(ValueError) as excinfo:
771771
move("file.txt", "subdir2/banana.txt", dest="subdir1", work_on=work_on)
772772
assert str(excinfo.value) == (
773-
f"'{tmp_path.absolute()}' not a Dandiset because "
774-
"the directory does not contain a 'dandiset.yaml' file. "
773+
f"{tmp_path.absolute()}: not a Dandiset. "
774+
"The directory does not contain a 'dandiset.yaml' file. "
775775
"Use 'dandi download' to download a dandiset first."
776776
)
777777

0 commit comments

Comments
 (0)