Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed Sep 20, 2024
1 parent 421e6f9 commit 1494621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def test_get_strutured_output_ollama(self):
"""

self.assertIsInstance(response, Character)
self.assertEqual('Harry James Potter', response.name)
assert response.name.startswith('Harry')
assert response.name.endswith('Potter')

if __name__ == '__main__':
unittest.main()

0 comments on commit 1494621

Please sign in to comment.