Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Oct 25, 2024
1 parent 1fa96de commit 859ec5d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/ert/unit_tests/plugins/test_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,23 @@ def forward_model_configuration():
).get_forward_model_configuration() == {"foo100": {"com": 3}, "foo200": {"bar": 2}}


def test_fm_config_with_nonstring_value():
def test_fm_config_with_repeated_keys_different_fm_step():
class SomePlugin:
@plugin(name="foo")
def forward_model_configuration():
return {"foo": {"bar": 3.4}}
return {"foo1": {"bar": "1"}}

assert ErtPluginManager(plugins=[SomePlugin]).get_forward_model_configuration() == {
"foo": {"bar": 3.4}
}
class OtherPlugin:
@plugin(name="foo2")
def forward_model_configuration():
return {"foo2": {"bar": "2"}}

assert ErtPluginManager(
plugins=[SomePlugin, OtherPlugin]
).get_forward_model_configuration() == {"foo1": {"bar": "1"}, "foo2": {"bar": "2"}}


def test_fm_config_with_repeated_keys_different_case():
def test_fm_config_with_repeated_keys_with_different_case():
class SomePlugin:
@plugin(name="foo")
def forward_model_configuration():
Expand Down

0 comments on commit 859ec5d

Please sign in to comment.