From 195720b333eb356b223aa4b03d066a8b6f08274e Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Tue, 23 Feb 2021 12:03:12 +0100 Subject: [PATCH] Add (failing) test of Scenario.solve() using DatabaseBackend --- ixmp/tests/backend/test_dbapi.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ixmp/tests/backend/test_dbapi.py b/ixmp/tests/backend/test_dbapi.py index 524f5c07f..f56bd865a 100644 --- a/ixmp/tests/backend/test_dbapi.py +++ b/ixmp/tests/backend/test_dbapi.py @@ -99,5 +99,18 @@ def test_ts(self, mp): assert 2 == ts2.version assert ts2.is_default() - def test_make_dantzig(self, mp): - make_dantzig(mp) + @pytest.mark.parametrize( + "solve", + ( + False, + pytest.param( + True, + marks=pytest.mark.xfail( + raises=NotImplementedError, + reason=".backend.io.s_write_gdx() is not implemented", + ), + ), + ), + ) + def test_make_dantzig(self, mp, solve): + make_dantzig(mp, solve=solve)