Skip to content

Commit

Permalink
Test that decoder cache is not disabled
Browse files Browse the repository at this point in the history
Closes #207.
  • Loading branch information
arvoelke committed Apr 1, 2019
1 parent 1452ad5 commit b165ebd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nengo_loihi/tests/test_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ def test_model_validate_notempty(Simulator):
a = nengo.Ensemble(10, 1)
model.config[a].on_chip = False

assert nengo.rc.get("decoder_cache", "enabled")

with pytest.raises(BuildError, match="No neurons marked"):
with Simulator(model):
pass

# Ensure cache config not changed (issue #207)
assert nengo.rc.get("decoder_cache", "enabled")


@pytest.mark.parametrize("precompute", [True, False])
def test_probedict_fallbacks(precompute, Simulator):
Expand Down

0 comments on commit b165ebd

Please sign in to comment.