Skip to content

Commit d3d965a

Browse files
committed
change name for testing convention
1 parent 34709f2 commit d3d965a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pymc/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def mock_pymc_sample():
10361036
return idata
10371037

10381038

1039-
def mock_sample_setup_and_breakdown():
1039+
def mock_sample_setup_and_teardown():
10401040
"""Set up and tear down mocking of PyMC sampling functions for testing.
10411041
10421042
This function is designed to be used with pytest fixtures to temporarily replace
@@ -1055,10 +1055,10 @@ def mock_sample_setup_and_breakdown():
10551055
10561056
import pytest
10571057
import pymc as pm
1058-
from pymc.testing import mock_sample_setup_and_breakdown
1058+
from pymc.testing import mock_sample_setup_and_teardown
10591059
10601060
# Register as a pytest fixture
1061-
mock_pymc_sample = pytest.fixture(scope="function")(mock_sample_setup_and_breakdown)
1061+
mock_pymc_sample = pytest.fixture(scope="function")(mock_sample_setup_and_teardown)
10621062
10631063
10641064
# Use in a test function

tests/test_testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import pymc as pm
1919

20-
from pymc.testing import Domain, mock_sample, mock_sample_setup_and_breakdown
20+
from pymc.testing import Domain, mock_sample, mock_sample_setup_and_teardown
2121
from tests.models import simple_normal
2222

2323

@@ -60,7 +60,7 @@ def test_mock_sample(args, kwargs, expected_draws) -> None:
6060
assert idata.posterior.sizes == {"chain": 1, "draw": expected_draws}
6161

6262

63-
mock_pymc_sample = pytest.fixture(scope="function")(mock_sample_setup_and_breakdown)
63+
mock_pymc_sample = pytest.fixture(scope="function")(mock_sample_setup_and_teardown)
6464

6565

6666
def test_fixture(mock_pymc_sample) -> None:

0 commit comments

Comments
 (0)