Skip to content

Commit

Permalink
Document choice of rule names and bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Feb 20, 2024
1 parent 4e18391 commit d35aa94
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/unit_tests/storage/test_local_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,24 @@ class StatefulStorageTest(RuleBasedStateMachine):
(the model).
see https://hypothesis.readthedocs.io/en/latest/stateful.html
When the test fails, you get a printout like this:
.. code-block:: text
state = StatefulStorageTest()
v1 = state.create_grid(egrid=EGrid(...))
v2 = state.create_field_list(fields=[...])
v3 = state.create_experiment(obs=EnkfObs(...), parameters=[...], responses=[...])
v4 = state.create_ensemble(ensemble_size=1, model_experiment=v3)
v5 = state.create_ensemble_from_prior(prior=v4)
state.get_ensemble(model_ensemble=v5)
state.teardown()
This describes which rules are run (like create_experiment which corresponds to
the same action storage api endpoint: self.storage.create_experiment), and which
parameters are applied (e.g. v1 is in the grid bundle and is created by the rule
state.create_grid).
"""

def __init__(self):
Expand Down

0 comments on commit d35aa94

Please sign in to comment.