Exemplo n.º 1
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()
        es = get_es()

        # Add on demand more models here.
        index_all_profiles()

        es.flush(refresh=True)
Exemplo n.º 2
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()
        es = get_es()

        # Add on demand more models here.
        index_all_profiles()

        es.flush(refresh=True)
Exemplo n.º 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)