-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ignore new generated files * Replace untested validation with assertion * Add testing of GaussFamily initialization failure mode * Add test for reading of TypeString descriptor * Add testing for GuardedStatistic.read * Remove laundering of exception thrown by statistic * Add test of module's execute function * Add test of reading parameters in NumberCountsSource * Refactor to allow testing of form_error_message * Extract calculate_firecrown_params for testing
- Loading branch information
1 parent
15b878d
commit e229d35
Showing
15 changed files
with
317 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
cobaya_evaluate_output* | ||
*.png | ||
output | ||
outputoutput.input.yaml | ||
output.updated.dill_pickle | ||
output.updated.yaml | ||
numcosmo/ | ||
output.input.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Tests for GaussFamily base class.""" | ||
|
||
import re | ||
|
||
import pytest | ||
import firecrown.likelihood.gaussian as g | ||
|
||
|
||
def test_init_rejects_non_statistics(): | ||
with pytest.raises( | ||
ValueError, | ||
match=re.escape( | ||
"statistics[0] is not an instance of Statistic. It is a <class 'int'>." | ||
), | ||
): | ||
g.ConstGaussian([1]) # type: ignore |
Oops, something went wrong.