Skip to content

Commit

Permalink
Add test extracting real data with no covariance
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpaterno committed Jan 7, 2025
1 parent a668d57 commit 54579e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/metadata/test_metadata_two_point_sacc.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,3 +955,13 @@ def test_extract_all_data_harmonic_no_cov(sacc_galaxy_cells):
match=("The SACC object does not have a dense covariance matrix."),
):
_ = extract_all_harmonic_data(sacc_data, include_maybe_types=True)


def test_extract_all_data_real_no_cov(sacc_galaxy_xis):
sacc_data, _, _ = sacc_galaxy_xis
sacc_data.covariance = None
with pytest.raises(
ValueError,
match=("The SACC object does not have a dense covariance matrix."),
):
_ = extract_all_real_data(sacc_data, include_maybe_types=True)

0 comments on commit 54579e6

Please sign in to comment.