diff --git a/tests/test_fernet.py b/tests/test_fernet.py index 360b569136d8..ef4ef70e25b0 100644 --- a/tests/test_fernet.py +++ b/tests/test_fernet.py @@ -127,7 +127,7 @@ def test_timestamp_ignored_no_ttl(self, monkeypatch, backend): monkeypatch.setattr(time, "time", pretend.raiser(ValueError)) assert f.decrypt(token, ttl=None) == pt - def test_ttl_required_in_decrypt_at_time(self, monkeypatch, backend): + def test_ttl_required_in_decrypt_at_time(self, backend): f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) pt = b"encrypt me" token = f.encrypt(pt) @@ -148,7 +148,7 @@ def test_bad_key(self, backend, key): with pytest.raises(ValueError): Fernet(key, backend=backend) - def test_extract_timestamp(self, monkeypatch, backend): + def test_extract_timestamp(self, backend): f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) current_time = 1526138327 token = f.encrypt_at_time(b"encrypt me", current_time) @@ -250,7 +250,7 @@ def test_rotate_str(self, backend): with pytest.raises(InvalidToken): mf1.decrypt(rotated) - def test_rotate_preserves_timestamp(self, backend, monkeypatch): + def test_rotate_preserves_timestamp(self, backend): f1 = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) f2 = Fernet(base64.urlsafe_b64encode(b"\x01" * 32), backend=backend)