def test_index_all_method_with_one_concept(self, mocker, concept): mocker.patch("concepts.models.Concept.index") Concept.index_all() Concept.index.assert_called_once()
def test_index_all_method_with_no_concepts(self, db): Concept.index_all()