Пример #1
0
    def load_test_data(self, model_name: str, **_):
        """
        Create test indices in Elasticsearch for QA.

        :param model_name: the name of the media type
        """

        create_search_qa_index(model_name)
        if self.progress is not None:
            self.progress.value = 100  # mark job as completed
Пример #2
0
 def load_test_data():
     """ Create test indices in Elasticsearch for QA. """
     create_search_qa_index()