Skip to content

Commit

Permalink
Add mutation of response keys to stateful storage test
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Oct 23, 2024
1 parent fe8453e commit 81463d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ert/unit_tests/storage/test_local_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,16 @@ def save_summary(self, model_ensemble: Ensemble, summary_data):

model_ensemble.response_values[summary.name] = ds

model_experiment = self.model[storage_experiment.id]
response_keys = set(ds["response_key"].unique())

model_smry_config = next(
config for config in model_experiment.responses if config.name == "summary"
)
model_smry_config.keys = sorted(
set(model_smry_config.keys).union(response_keys)
)

@rule(model_ensemble=ensembles)
def get_responses(self, model_ensemble: Ensemble):
storage_ensemble = self.storage.get_ensemble(model_ensemble.uuid)
Expand Down

0 comments on commit 81463d6

Please sign in to comment.