コード例 #1
0
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()

    client = StrictRedis(db=9)
    client.flushdb()

    from celery.task.control import discard_all
    discard_all()
コード例 #2
0
ファイル: pytest.py プロジェクト: carriercomm/sentry-1
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()

    client = StrictRedis(db=9)
    client.flushdb()

    from celery.task.control import discard_all
    discard_all()
コード例 #3
0
ファイル: pytest.py プロジェクト: Cobbyzhang/sentry
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()

    from sentry.utils.redis import clusters

    with clusters.get('default').all() as client:
        client.flushdb()

    from celery.task.control import discard_all
    discard_all()
コード例 #4
0
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()

    from sentry.utils.redis import clusters

    with clusters.get('default').all() as client:
        client.flushdb()

    from celery.task.control import discard_all
    discard_all()
コード例 #5
0
ファイル: pytest.py プロジェクト: BlueMoebius/sentry
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()
コード例 #6
0
ファイル: conftest.py プロジェクト: zdecibel/sentry
def pytest_runtest_teardown(item):
    from sentry.app import tsdb
    tsdb.flush()