Skip to content

Commit

Permalink
Have cli adaptive localization tests run in same distgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed Oct 29, 2024
1 parent d24eb13 commit 45af1a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ert/ui_tests/cli/analysis/test_adaptive_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def run_cli_ES_with_case(poly_config):
return prior_ensemble, posterior_ensemble


@pytest.mark.xdist_group("adaptive_localization_test")
@pytest.mark.timeout(600)
@pytest.mark.usefixtures("copy_poly_case")
def test_that_adaptive_localization_with_cutoff_1_equals_ensemble_prior():
Expand Down Expand Up @@ -60,6 +61,7 @@ def test_that_adaptive_localization_with_cutoff_1_equals_ensemble_prior():
assert np.allclose(posterior_sample, prior_sample)


@pytest.mark.xdist_group("adaptive_localization_test")
@pytest.mark.timeout(600)
@pytest.mark.usefixtures("copy_poly_case")
def test_that_adaptive_localization_works_with_a_single_observation():
Expand Down Expand Up @@ -97,6 +99,7 @@ def test_that_adaptive_localization_works_with_a_single_observation():
_, _ = run_cli_ES_with_case("poly_localization_0.ert")


@pytest.mark.xdist_group("adaptive_localization_test")
@pytest.mark.timeout(600)
@pytest.mark.usefixtures("copy_poly_case")
def test_that_adaptive_localization_works_with_multiple_observations(snapshot):
Expand Down Expand Up @@ -217,6 +220,7 @@ def _evaluate(coeffs, x):
assert set(map(tuple, records_from_pl)) == expected_records


@pytest.mark.xdist_group("adaptive_localization_test")
@pytest.mark.timeout(600)
@pytest.mark.usefixtures("copy_poly_case")
def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate():
Expand Down Expand Up @@ -255,6 +259,7 @@ def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate():
assert np.allclose(posterior_sample_loc0, posterior_sample_noloc, atol=1e-6)


@pytest.mark.xdist_group("adaptive_localization_test")
@pytest.mark.timeout(600)
@pytest.mark.usefixtures("copy_poly_case")
def test_that_posterior_generalized_variance_increases_in_cutoff():
Expand Down

0 comments on commit 45af1a9

Please sign in to comment.