Ejemplo n.º 1
0
    def test_save_to_valid_path(self, project_from_gis):
        umi = UmiProject()
        umi.save("empty_project.umi")

        assert Path("empty_project.umi").exists()
Ejemplo n.º 2
0
    def test_save_to_valid_path_no_extension(self, project_from_gis):
        umi = UmiProject()
        umi.save("empty_project_other_name_no_extension")

        assert Path("empty_project_other_name_no_extension.umi").exists()
Ejemplo n.º 3
0
 def test_save_to_non_existent_path(self):
     umi = UmiProject()
     with pytest.raises(FileNotFoundError):
         umi.save("./temp/should_fail.umi")