mirror of
https://github.com/django/django.git
synced 2025-11-19 11:15:44 +00:00
Added skipUnless decorator in tests/backends/sqlite/test_parallel.py and reverted unrelated changes
This commit is contained in:
parent
f96f4cd707
commit
c2822f58fb
2 changed files with 5 additions and 3 deletions
|
|
@ -88,8 +88,8 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||
"NAME": f"{self.connection.alias}_{suffix}.sqlite3",
|
||||
}
|
||||
raise NotSupportedError(
|
||||
f"Cloning with start method {start_method!r} is not supported."
|
||||
)
|
||||
f"Cloning with start method {start_method!r} is not supported."
|
||||
)
|
||||
|
||||
def _clone_test_db(self, suffix, verbosity, keepdb=False):
|
||||
source_database_name = self.connection.settings_dict["NAME"]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
from django.db import connections
|
||||
from django.db import connection, connections
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == "sqlite", "SQLite tests")
|
||||
class SQLiteParallelCloneTests(TestCase):
|
||||
"""
|
||||
Tests that cloned SQLite test databases respect the original
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue