Commit f82b084e authored by Martin Reinecke's avatar Martin Reinecke
Browse files

make sure that the RNG is in a reproducible state for every single test

parent 9020c956
Pipeline #71181 passed with stages
in 16 minutes and 58 seconds
......@@ -20,7 +20,7 @@ import pytest
import nifty6 as ift
from ..common import list2fixture
from ..common import list2fixture, setup_function, teardown_function
_h_RG_spaces = [
ift.RGSpace(7, distances=0.2, harmonic=True),
......
......@@ -18,6 +18,7 @@
from numpy.testing import assert_allclose, assert_equal
import nifty6 as ift
from ..common import setup_function, teardown_function
def test_simplification():
......
......@@ -21,7 +21,7 @@ from numpy.testing import assert_allclose
import nifty6 as ift
from ..common import list2fixture
from ..common import list2fixture, setup_function, teardown_function
def _get_rtol(tp):
......
......@@ -20,6 +20,7 @@ import pytest
from numpy.testing import assert_
import nifty6 as ift
from ..common import setup_function, teardown_function
@pytest.mark.parametrize('sp', [
......
......@@ -18,6 +18,7 @@
import numpy as np
import nifty6 as ift
from .common import setup_function, teardown_function
def test_plots():
......
......@@ -23,6 +23,7 @@ from numpy.testing import (assert_, assert_almost_equal, assert_equal,
assert_raises)
from nifty6 import GLSpace
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
......
......@@ -21,6 +21,7 @@ from numpy.testing import (assert_, assert_almost_equal, assert_equal,
assert_raises)
from nifty6 import HPSpace
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
# [nside, expected]
......
......@@ -21,6 +21,7 @@ import pytest
from numpy.testing import assert_
import nifty6 as ift
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
......
......@@ -20,6 +20,7 @@ import pytest
from numpy.testing import assert_, assert_allclose, assert_equal, assert_raises
import nifty6 as ift
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
# [lmax, expected]
......
......@@ -22,6 +22,7 @@ import pytest
from numpy.testing import assert_, assert_allclose, assert_equal, assert_raises
import nifty6 as ift
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
......
......@@ -20,6 +20,7 @@ import pytest
from numpy.testing import assert_, assert_allclose, assert_equal
import nifty6 as ift
from ..common import setup_function, teardown_function
pmp = pytest.mark.parametrize
# [shape, distances, harmonic, expected]
......
......@@ -19,6 +19,7 @@ import numpy as np
from numpy.testing import assert_equal
import nifty6 as ift
from .common import setup_function, teardown_function
def test_get_signal_variance():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment