Skip to content

Commit

Permalink
tests: test project file writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 16, 2020
1 parent b69a671 commit f935514
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions paquo/tests/test_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ def test_project_add_image(new_project, svs_small):
assert object() not in new_project.images


def test_project_add_image_writes_project(tmp_path, svs_small):
qp = QuPathProject(tmp_path)
qp.add_image(svs_small)

assert qp.path.is_file()


def test_project_add_image_twice(new_project, svs_small):
new_project.add_image(svs_small)
with pytest.raises(FileExistsError):
Expand Down

0 comments on commit f935514

Please sign in to comment.