Skip to content

Commit fd60009

Browse files
authored
Merge pull request #1224 from Yashsingh045/GH1223-seed-random
Seed random and numpy.random in test suite
2 parents 44d93ba + d144d53 commit fd60009

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import numpy as np
2+
import pytest
3+
4+
5+
@pytest.fixture(autouse=True, scope="session")
6+
def seed_random():
7+
np.random.seed(42)

0 commit comments

Comments
 (0)