Skip to content

Commit 619cac7

Browse files
committed
fix(test): patch check_index_template
1 parent 29839b9 commit 619cac7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

osf_tests/metrics/test_daily_report.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
class TestDailyReportKey:
1111
@pytest.fixture
1212
def mock_save(self):
13-
with mock.patch('elasticsearch6_dsl.Document.save', autospec=True) as mock_save:
14-
yield mock_save
13+
with mock.patch('elasticsearch_metrics.imps.elastic6.BaseMetric.check_index_template'):
14+
with mock.patch('elasticsearch6_dsl.Document.save', autospec=True) as mock_save:
15+
yield mock_save
1516

1617
def test_default(self, mock_save):
1718
# only one of this type of report per day

0 commit comments

Comments
 (0)