Skip to content

Commit 134618e

Browse files
authored
Fix linting (#2264)
1 parent a1a130a commit 134618e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integrations/meta_llama/tests/test_llama_chat_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_init_default(self, monkeypatch):
8888

8989
def test_init_fail_wo_api_key(self, monkeypatch):
9090
monkeypatch.delenv("LLAMA_API_KEY", raising=False)
91-
with pytest.raises(ValueError, match="None of the .* environment variables are set"):
91+
with pytest.raises(ValueError, match=r"None of the .* environment variables are set"):
9292
MetaLlamaChatGenerator()
9393

9494
def test_init_with_parameters(self):
@@ -207,7 +207,7 @@ def test_from_dict_fail_wo_env_var(self, monkeypatch):
207207
},
208208
},
209209
}
210-
with pytest.raises(ValueError, match="None of the .* environment variables are set"):
210+
with pytest.raises(ValueError, match=r"None of the .* environment variables are set"):
211211
MetaLlamaChatGenerator.from_dict(data)
212212

213213
def test_run(self, chat_messages, mock_chat_completion, monkeypatch): # noqa: ARG002

0 commit comments

Comments
 (0)