mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
test(proxy): use raw strings for regex match patterns
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
773d7efd14
commit
9a1434e6ff
2 changed files with 2 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ def test_require_legacy_reader_refuses_rewrite_passes_without_pynacl(monkeypatch
|
|||
monkeypatch.setitem(sys.modules, "nacl", None)
|
||||
monkeypatch.setitem(sys.modules, "nacl.secret", None)
|
||||
|
||||
with pytest.raises(LegacyEncryptionUnavailableError, match="rotate the master key.*legacy-encryption"):
|
||||
with pytest.raises(LegacyEncryptionUnavailableError, match=r"rotate the master key.*legacy-encryption"):
|
||||
require_legacy_reader("rotate the master key")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3509,7 +3509,7 @@ def test_ProxyConfig__encrypt_env_variables_for_db_refuses_without_pynacl_instea
|
|||
monkeypatch.setitem(sys.modules, "nacl", None)
|
||||
monkeypatch.setitem(sys.modules, "nacl.secret", None)
|
||||
pc = ProxyConfig()
|
||||
with pytest.raises(LegacyEncryptionUnavailableError, match="config save.*legacy-encryption"):
|
||||
with pytest.raises(LegacyEncryptionUnavailableError, match=r"config save.*legacy-encryption"):
|
||||
pc._encrypt_env_variables_for_db({"A": "1"})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue