Skip to content

Commit

Permalink
#359 Add test stub and todo for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fcooper8472 committed Apr 29, 2019
1 parent 0ee60a1 commit 079152d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/data_layer/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,12 @@ def test_canonical_missing_results(
missing_results.remove((2015, 0, 'energy_demand', 'gas_demand'))

assert(store.canonical_missing_results(model_run['name']) == missing_results)

def test_get_results(self):
# This is difficult to test without fixtures defining an entire canonical project.
# See smif issue #304 (https://github.com/nismod/smif/issues/304).
# Todo: mock a store with known results that can be obtained with get_results(...)
# This requires a model run with sector model, and a sector model with valid inputs and
# outputs, and results with valid spec, etc. Some of this functionality exists in
# fixtures provided in `conftest.py`.
pass

0 comments on commit 079152d

Please sign in to comment.