Skip to content

Commit 9e71e38

Browse files
committed
fixing up tests
1 parent 6c430e5 commit 9e71e38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/search/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ def mock_elastic_index(mocker):
1919

2020
@pytest.fixture()
2121
def es_index():
22+
call_command('search_index', '--delete', '-f')
2223
call_command('search_index', '--create')
2324

2425
yield
25-
call_command('search_index', '--delete')
26+
call_command('search_index', '--delete', '-f')
2627

2728

2829
@pytest.fixture

0 commit comments

Comments
 (0)