tests: fuzzy test for Obs added, test dependencies and documentation

updated.
This commit is contained in:
Fabian Joswig 2023-01-20 11:44:31 +00:00
parent ef23dd256f
commit 7bb164120b
No known key found for this signature in database
5 changed files with 12 additions and 2 deletions

View file

@ -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):