From e79610af3a01c2f891a50a113695f36152ca4a16 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 3 May 2018 14:31:46 +0200 Subject: [PATCH] tests: fix skipping with TestPosgresFieldsMapping (#5965) `pytest.mark.skipUnless` does not exist, it was confused with `unittest.skipUnless` probably. --- tests/test_model_serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index d865350fb..b7d31e2bd 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -402,7 +402,7 @@ class TestGenericIPAddressFieldValidation(TestCase): '{0}'.format(s.errors)) -@pytest.mark.skipUnless(postgres_fields, 'postgres is required') +@pytest.mark.skipif('not postgres_fields') class TestPosgresFieldsMapping(TestCase): def test_hstore_field(self): class HStoreFieldModel(models.Model):