Added skipUnless decorator in tests/backends/sqlite/test_parallel.py and reverted unrelated changes

This commit is contained in:
aryan7081 2025-09-20 15:56:28 +05:30
parent f96f4cd707
commit c2822f58fb
2 changed files with 5 additions and 3 deletions

View file

@ -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"]

View file

@ -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