Skip to content

Commit

Permalink
conftest
Browse files Browse the repository at this point in the history
Jammy2211 committed Mar 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 34cb77a commit 284a672
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test_autolens/analysis/test_result.py
Original file line number Diff line number Diff line change
@@ -317,21 +317,21 @@ def test__positions_likelihood_from(analysis_imaging_7x7):


def test__results_include_mask__available_as_property(
analysis_imaging_7x7, masked_imaging_7x7, samples_with_result
analysis_imaging_7x7, masked_imaging_7x7, samples_summary_with_result
):
result = res.ResultDataset(
samples=samples_with_result,
samples=samples_summary_with_result,
analysis=analysis_imaging_7x7,
)

assert (result.mask == masked_imaging_7x7.mask).all()


def test__results_include_positions__available_as_property(
analysis_imaging_7x7, masked_imaging_7x7, samples_with_result
analysis_imaging_7x7, masked_imaging_7x7, samples_summary_with_result
):
result = res.ResultDataset(
samples=samples_with_result,
samples=samples_summary_with_result,
analysis=analysis_imaging_7x7,
)

@@ -346,7 +346,7 @@ def test__results_include_positions__available_as_property(
)

result = res.ResultDataset(
samples=samples_with_result,
samples=samples_summary_with_result,
analysis=analysis,
)

6 changes: 3 additions & 3 deletions test_autolens/conftest.py
Original file line number Diff line number Diff line change
@@ -391,6 +391,6 @@ def make_include_all():
return fixtures.make_include_2d_all()


@pytest.fixture(name="samples_with_result")
def make_samples_with_result():
return fixtures.make_samples_with_result()
@pytest.fixture(name="samples_summary_with_result")
def make_samples_summary_with_result():
return fixtures.make_samples_summary_with_result()

0 comments on commit 284a672

Please sign in to comment.