mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
Co-authored-by: Tim Graham <timograham@gmail.com>
This commit is contained in:
parent
5ce31d6a71
commit
275dd4ebba
29 changed files with 248 additions and 87 deletions
|
@ -1,5 +1,3 @@
|
|||
import unittest
|
||||
|
||||
from django.core import validators
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import IntegrityError, connection, models
|
||||
|
@ -192,7 +190,6 @@ class PositiveIntegerFieldTests(IntegerFieldTests):
|
|||
else models.IntegerField
|
||||
)
|
||||
|
||||
@unittest.skipIf(connection.vendor == 'sqlite', "SQLite doesn't have a constraint.")
|
||||
def test_negative_values(self):
|
||||
p = PositiveIntegerModel.objects.create(value=0)
|
||||
p.value = models.F('value') - 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue