diff --git a/tests/providers/test_barcode.py b/tests/providers/test_barcode.py index 8fee0fc384..614e1a5d79 100644 --- a/tests/providers/test_barcode.py +++ b/tests/providers/test_barcode.py @@ -66,7 +66,7 @@ def test_ean13_leading_zero(self, faker, num_samples): assert (sum(ean13_digits) + 2 * sum(ean13_digits[1::2])) % 10 == 0 -@pytest.fixture('class') +@pytest.fixture(scope='class') def provider_class(request): if hasattr(request.cls, 'get_provider_class') and callable(request.cls.get_provider_class): _provider_class = request.cls.get_provider_class() diff --git a/tox.ini b/tox.ini index 72cab4a1f5..0bf3dbcd13 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ skip_missing_interpreters = true deps = coverage freezegun<0.4 - pytest>=5.4.0,<5.5 + pytest>=6.0.1 random2 ukpostcodeparser>=1.1.1 validators>=0.13.0