Skip to content

Commit

Permalink
bug-1906113: set up markus at pytest session start
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Aug 12, 2024
1 parent 9c29c64 commit 358201c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tecken/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,25 @@
import pytest
import requests_mock

from django.conf import settings
from django.contrib.auth.models import Group
from django.core.cache import caches

from tecken.base.symbolstorage import SymbolStorage
from tecken.ext.gcs.storage import GCSStorage
from tecken.ext.s3.storage import S3Storage
from tecken.libmarkus import set_up_markus
from tecken.libstorage import StorageBackend


def pytest_sessionstart(session):
set_up_markus(
backends=[{"class": "markus.backends.logging.LoggingMetrics"}],
hostname=settings.HOSTNAME,
debug=True,
)


@pytest.fixture(autouse=True)
def clear_cache():
caches["default"].clear()
Expand Down

0 comments on commit 358201c

Please sign in to comment.