Skip to content

Commit a124d2f

Browse files
committed
fix
1 parent eaaedb3 commit a124d2f

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

42-vanilla-agent-feedback/tests/test_agent.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ def test_agents_json():
3535

3636
def test_feedback_thumbs_up(tmp_path, monkeypatch):
3737
feedback_file = tmp_path / "feedback.json"
38-
monkeypatch.setattr(
39-
"vanilla_agent_feedback.main.FEEDBACK_FILE", feedback_file
40-
)
38+
monkeypatch.setattr("vanilla_agent_feedback.main.FEEDBACK_FILE", feedback_file)
4139

4240
payload = {
4341
"vote": "thumbs_up",
@@ -58,9 +56,7 @@ def test_feedback_thumbs_up(tmp_path, monkeypatch):
5856

5957
def test_feedback_thumbs_down(tmp_path, monkeypatch):
6058
feedback_file = tmp_path / "feedback.json"
61-
monkeypatch.setattr(
62-
"vanilla_agent_feedback.main.FEEDBACK_FILE", feedback_file
63-
)
59+
monkeypatch.setattr("vanilla_agent_feedback.main.FEEDBACK_FILE", feedback_file)
6460

6561
payload = {
6662
"vote": "thumbs_down",
@@ -77,9 +73,7 @@ def test_feedback_thumbs_down(tmp_path, monkeypatch):
7773
entries = json.loads(feedback_file.read_text())
7874
assert len(entries) == 1
7975
assert entries[0]["vote"] == "thumbs_down"
80-
assert entries[0]["tags"] == [
81-
"Not factually correct / Hallucinations / Inaccurate"
82-
]
76+
assert entries[0]["tags"] == ["Not factually correct / Hallucinations / Inaccurate"]
8377

8478

8579
def test_query():

0 commit comments

Comments
 (0)