LSSTDESC / TJPCov

TJPCov is a general covariance calculator interface to be used within LSST DESC
https://tjpcov.readthedocs.io
MIT License
11 stars 1 forks source link

Consider using pytest fixtures in the test #60

Open carlosggarcia opened 1 year ago

carlosggarcia commented 1 year ago

Consider using pytest fixtures in the test instead of instantiating the class in each test; e.g.

@pytest.fixture
def mock_covariance():
  return CovarianceCalculator(input_yml)

def my_test(mock_covariance):
   mock_covariance.get_covariance()