mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #23872 -- Removed sensitivity of migrations tests to CWD.
This commit is contained in:
parent
4932a7b8e0
commit
47b7f601ee
2 changed files with 19 additions and 15 deletions
|
@ -1,5 +1,8 @@
|
|||
from django.test import TransactionTestCase
|
||||
import os
|
||||
|
||||
from django.db import connection
|
||||
from django.test import TransactionTestCase
|
||||
from django.utils._os import upath
|
||||
|
||||
|
||||
class MigrationTestBase(TransactionTestCase):
|
||||
|
@ -8,6 +11,7 @@ class MigrationTestBase(TransactionTestCase):
|
|||
"""
|
||||
|
||||
available_apps = ["migrations"]
|
||||
test_dir = os.path.abspath(os.path.dirname(upath(__file__)))
|
||||
|
||||
def get_table_description(self, table):
|
||||
with connection.cursor() as cursor:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue