conftest.py 220 B

1234567891011121314
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. import pytest
  4. @pytest.fixture(autouse=True)
  5. def close_figs():
  6. yield
  7. plt.close("all")
  8. @pytest.fixture(autouse=True)
  9. def random_seed():
  10. np.random.seed(47)