コード例 #1
0
ファイル: test_search.py プロジェクト: sgarrity/kitsune
    def tearDownClass(cls):

        destroy_extra_tables()

        if SphinxTestCase.sphinx_is_running:
            stop_sphinx()
            SphinxTestCase.sphinx_is_running = False
コード例 #2
0
ファイル: tests.py プロジェクト: landas/zamboni
 def test_sphinx_off(self):
     """
     This tests that if sphinx is turned off that you will get an error.
     """
     # Shut down sphinx if it's configured.
     if settings.SPHINX_SEARCHD and settings.SPHINX_INDEXER:
         stop_sphinx()
     response = self.client.get("/en-US/firefox/api/1.2/search/foo")
     self.assertContains(response, "Could not connect to Sphinx search.",
                         status_code=503)
コード例 #3
0
    def test_sphinx_off(self):
        """
        This tests that if sphinx is turned off that you will get an error.
        """
        # Shut down sphinx if it's configured.
        if settings.SPHINX_SEARCHD and settings.SPHINX_INDEXER:
            stop_sphinx()

        os.environ['DJANGO_ENVIRONMENT'] = 'test'
        response = self.client.get("/en-US/firefox/api/1.2/search/foo")
        self.assertContains(response, "Could not connect to Sphinx search.",
                            status_code=503)
コード例 #4
0
ファイル: test_search.py プロジェクト: jasonthomas/kitsune
 def tearDownClass(cls):
     stop_sphinx()
     super(SphinxTestCase, cls).tearDownClass()
コード例 #5
0
ファイル: tests.py プロジェクト: mccammos/zamboni
 def tearDownClass(cls):
     if SphinxTestCase.sphinx_is_running:
         stop_sphinx()
         SphinxTestCase.sphinx_is_running = False
コード例 #6
0
 def teardown_class(cls):
     stop_sphinx()
     super(SphinxTestCase, cls).teardown_class()
コード例 #7
0
 def tearDownClass(cls):
     if SphinxTestCase.sphinx_is_running:
         stop_sphinx()
         SphinxTestCase.sphinx_is_running = False
コード例 #8
0
ファイル: test_search.py プロジェクト: codeadict/kitsune
 def tearDownClass(cls):
     stop_sphinx()
     super(SphinxTestCase, cls).tearDownClass()
コード例 #9
0
ファイル: __init__.py プロジェクト: bebef1987/zamboni
 def tearDownClass(cls):
     super(SphinxTestCase, cls).tearDownClass()
     if SphinxTestCase.sphinx_is_running:
         stop_sphinx()
         SphinxTestCase.sphinx_is_running = False
コード例 #10
0
ファイル: stop_sphinx.py プロジェクト: chowse/reporter
 def handle_noargs(self, **options):
     stop_sphinx()
コード例 #11
0
 def teardown_class(cls):
     stop_sphinx()
     super(SphinxTestCase, cls).teardown_class()
コード例 #12
0
ファイル: stop_sphinx.py プロジェクト: treevivi/kitsune
 def handle_noargs(self, *args, **kwargs):
     stop_sphinx()
コード例 #13
0
 def tearDownClass(cls):
     super(SphinxTestCase, cls).tearDownClass()
     if SphinxTestCase.sphinx_is_running:
         stop_sphinx()
         SphinxTestCase.sphinx_is_running = False
コード例 #14
0
ファイル: test_sphinx.py プロジェクト: Curlified/kitsune
 def tearDownClass(cls):
     super(SphinxTestCase, cls).tearDownClass()
     if not cls.skipme:
         stop_sphinx()