Skip to content

Commit

Permalink
Add (failing) test of Scenario.solve() using DatabaseBackend
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Feb 23, 2021
1 parent 6464987 commit 195720b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ixmp/tests/backend/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 195720b

Please sign in to comment.