mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
tests: fuzzy test for Obs added, test dependencies and documentation
updated.
This commit is contained in:
parent
ef23dd256f
commit
7bb164120b
5 changed files with 12 additions and 2 deletions
|
@ -4,9 +4,15 @@ import copy
|
|||
import matplotlib.pyplot as plt
|
||||
import pyerrors as pe
|
||||
import pytest
|
||||
from hypothesis import given, strategies as st
|
||||
|
||||
np.random.seed(0)
|
||||
|
||||
@given(st.lists(st.floats(allow_nan=False, allow_infinity=False, width=32), min_size=5), st.text())
|
||||
def test_fuzzy_obs(data, string):
|
||||
my_obs = pe.Obs([data], [string])
|
||||
my_obs * my_obs
|
||||
|
||||
|
||||
def test_Obs_exceptions():
|
||||
with pytest.raises(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue