Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Dec 30, 2021
1 parent 9fae089 commit 5c5af7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest
from pytest_django.fixtures import SettingsWrapper

from blossom.management.commands import bootstrap_site

Expand All @@ -11,6 +12,12 @@ def enable_db_access_for_all_tests(db: Any) -> None:
pass


@pytest.fixture(autouse=True)
def enable_app(settings: SettingsWrapper) -> None:
"""Run all the tests for the transcription app even if it's not enabled."""
settings.ENABLE_APP = True


@pytest.fixture(autouse=True)
def setup_site() -> None:
"""Fixture that configures the site as if it were about to be deployed."""
Expand Down

0 comments on commit 5c5af7c

Please sign in to comment.