Skip to content

Commit e79610a

Browse files
blueyedtomchristie
authored andcommitted
tests: fix skipping with TestPosgresFieldsMapping (#5965)
`pytest.mark.skipUnless` does not exist, it was confused with `unittest.skipUnless` probably.
1 parent 8c03c49 commit e79610a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_model_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class Meta:
402402
'{0}'.format(s.errors))
403403

404404

405-
@pytest.mark.skipUnless(postgres_fields, 'postgres is required')
405+
@pytest.mark.skipif('not postgres_fields')
406406
class TestPosgresFieldsMapping(TestCase):
407407
def test_hstore_field(self):
408408
class HStoreFieldModel(models.Model):

0 commit comments

Comments
 (0)