We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4812b63 commit 9787137Copy full SHA for 9787137
pymc3/tests/test_distributions.py
@@ -1774,6 +1774,14 @@ def test___str__(self):
1774
for str_repr in self.expected_str:
1775
assert str_repr in model_str
1776
1777
+ def test_str(self):
1778
+ for distribution, str_repr in zip(self.distributions, self.expected_str):
1779
+ assert str(distribution) == str_repr
1780
+
1781
+ model_str = str(self.model)
1782
+ for str_repr in self.expected_str:
1783
+ assert str_repr in model_str
1784
1785
1786
def test_discrete_trafo():
1787
with pytest.raises(ValueError) as err:
0 commit comments