コード例 #1
0
ファイル: init.py プロジェクト: stardines/mozillians
    def setUpClass(cls):
        """Runs the :class:`TestCase` setup to add some data.

        Also re-creates indexes respecting data mappings, flushes and
        refreshes the data so it's searchable via computer.

        """
        estestcase.ESTestCase.setUpClass()
        TestCase.setUpClass()
        es = get_es()

        # Add on demand more models here.
        index_all_profiles()

        es.flush(refresh=True)
コード例 #2
0
ファイル: init.py プロジェクト: ahmontero/mozillians
    def setUpClass(cls):
        """Runs the :class:`TestCase` setup to add some data.

        Also re-creates indexes respecting data mappings, flushes and
        refreshes the data so it's searchable via computer.

        """
        estestcase.ESTestCase.setUpClass()
        TestCase.setUpClass()
        es = get_es()

        # Add on demand more models here.
        index_all_profiles()

        es.flush(refresh=True)
コード例 #3
0
    def setUpClass(cls):
        """Runs the :class:`TestCase` setup to add some data.

        Also re-creates indexes respecting data mappings, flushes and
        refreshes the data so it's searchable via computer.

        """
        estestcase.ESTestCase.setUpClass()
        TestCase.setUpClass()

        # Add on demand more models here.
        index_all_profiles()

        # Allow time for ES to index stuff
        sleep(1)