Skip to content

Commit

Permalink
random error in galaxy deflector test?
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-Best-01 committed Oct 9, 2024
1 parent 73ced4d commit f899210
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_Source/test_agn.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_random_agn():
input_agn_bounds_dict["intrinsic_light_curve"] = {
"MJD": [0, 1, 2, 3, 4, 5],
"ps_mag_intrinsic": [1, 0, -1, 0, 1, 0],
}
}

random_agn_3 = RandomAgn(
i_band_string,
Expand All @@ -217,7 +217,11 @@ def test_random_agn():
)

# test initialization with minimal information
RandomAgn(i_band_string, i_band_mag, redshift)
RandomAgn(
i_band_string,
i_band_mag,
redshift
)

# Test that we raise a warning in RandomAgn when no time axis is input
with pytest.raises(ValueError):
Expand Down

0 comments on commit f899210

Please sign in to comment.