Skip to content

Commit

Permalink
simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jan 23, 2025
1 parent 766b109 commit 4e05120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from tortoise.contrib.test import finalizer, initializer
from tortoise.contrib.test import MEMORY_SQLITE, finalizer, initializer


@pytest.fixture(scope="session", autouse=True)
Expand All @@ -15,6 +15,6 @@ def initialize_tests(request):
except ImportError:
pass

db_url = os.getenv("TORTOISE_TEST_DB", "sqlite://:memory:")
db_url = os.getenv("TORTOISE_TEST_DB", MEMORY_SQLITE)
initializer(["tests.testmodels"], db_url=db_url)
request.addfinalizer(finalizer)

0 comments on commit 4e05120

Please sign in to comment.