1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
--- a/spopt/tests/conftest.py
+++ b/spopt/tests/conftest.py
@@ -152,19 +152,19 @@
@pytest.fixture
-def loc_raises_diff_crs() -> _pytest.python_api.RaisesContext:
+def loc_raises_diff_crs():
"""`locate` error"""
return pytest.raises(ValueError, match="Geodataframes crs are different: ")
@pytest.fixture
-def loc_raises_infeasible() -> _pytest.python_api.RaisesContext:
+def loc_raises_infeasible():
"""`locate` error"""
return pytest.raises(RuntimeError, match="Model is not solved: Infeasible.")
@pytest.fixture
-def loc_raises_fac_constr() -> _pytest.python_api.RaisesContext:
+def loc_raises_fac_constr():
"""`locate` error"""
return pytest.raises(AttributeError, match="Before setting facility constraint")
|