Refs #25415 -- Fixed/silenced check errors in Django's test suite.
This commit is contained in:
parent
e3e80da7a5
commit
6d947e8c32
|
@ -163,6 +163,10 @@ def setup(verbosity, test_labels, parallel):
|
||||||
# tests.
|
# tests.
|
||||||
log_config['loggers']['django']['level'] = 'ERROR'
|
log_config['loggers']['django']['level'] = 'ERROR'
|
||||||
settings.LOGGING = log_config
|
settings.LOGGING = log_config
|
||||||
|
settings.SILENCED_SYSTEM_CHECKS = [
|
||||||
|
'fields.W342', # ForeignKey(unique=True) -> OneToOneField
|
||||||
|
'fields.W901', # CommaSeparatedIntegerField deprecated
|
||||||
|
]
|
||||||
|
|
||||||
warnings.filterwarnings(
|
warnings.filterwarnings(
|
||||||
'ignore',
|
'ignore',
|
||||||
|
|
|
@ -204,8 +204,6 @@ class Ticket17477RegressionTests(AdminScriptTestCase):
|
||||||
|
|
||||||
class Sqlite3InMemoryTestDbs(TestCase):
|
class Sqlite3InMemoryTestDbs(TestCase):
|
||||||
|
|
||||||
available_apps = []
|
|
||||||
|
|
||||||
@unittest.skipUnless(all(db.connections[conn].vendor == 'sqlite' for conn in db.connections),
|
@unittest.skipUnless(all(db.connections[conn].vendor == 'sqlite' for conn in db.connections),
|
||||||
"This is an sqlite-specific issue")
|
"This is an sqlite-specific issue")
|
||||||
def test_transaction_support(self):
|
def test_transaction_support(self):
|
||||||
|
|
Loading…
Reference in New Issue