mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
tests: fix skipping with TestPosgresFieldsMapping (#5965)
`pytest.mark.skipUnless` does not exist, it was confused with `unittest.skipUnless` probably.
This commit is contained in:
parent
8c03c49400
commit
e79610af3a
|
@ -402,7 +402,7 @@ class TestGenericIPAddressFieldValidation(TestCase):
|
||||||
'{0}'.format(s.errors))
|
'{0}'.format(s.errors))
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipUnless(postgres_fields, 'postgres is required')
|
@pytest.mark.skipif('not postgres_fields')
|
||||||
class TestPosgresFieldsMapping(TestCase):
|
class TestPosgresFieldsMapping(TestCase):
|
||||||
def test_hstore_field(self):
|
def test_hstore_field(self):
|
||||||
class HStoreFieldModel(models.Model):
|
class HStoreFieldModel(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user