Skip to content

Commit

Permalink
100% codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-Best-01 committed Sep 21, 2024
1 parent 6c7eada commit 149032d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_Source/test_accretion_disk_reprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ def test_initialization(self):
}
reprocessor = AccretionDiskReprocessing("lamppost", **kwargs_agn_model)
assert reprocessor.reprocessing_model == "lamppost"
assert reprocessor.redshift == 0

kwargs_agn_model["redshift"] = 3.1
redshifted_reprocessor = AccretionDiskReprocessing(
"lamppost", **kwargs_agn_model
)
assert redshifted_reprocessor.redshift == 3.1

with pytest.raises(ValueError):
AccretionDiskReprocessing("other", **kwargs_agn_model)

Expand All @@ -43,6 +51,9 @@ def test_initialization_invalid_model(self):
"Given model is not supported. Currently supported model is lamppost."
) in str(excinfo.value)

kwargs_agn_model["redshift"] = 3.1
AccretionDiskReprocessing("lamppost", **kwargs_agn_model)

def test_default_initialization_lamppost_model(self):
kwargs_agn_model = {"r_out": 1000}
reprocessor = AccretionDiskReprocessing("lamppost", **kwargs_agn_model)
Expand Down

0 comments on commit 149032d

Please sign in to comment.