We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd1547 commit fb48ed9Copy full SHA for fb48ed9
tests/test_outline.py
@@ -16,9 +16,9 @@ def template(a: int) -> str:
16
17
def test_outline():
18
mock_model = Mock()
19
- mock_model.__iter__ = lambda self: iter([])
+ mock_model.vocabulary.__iter__ = lambda self: iter([])
20
mock_generator = Mock()
21
- mock_generator.__iter__ = lambda self: iter([])
+ mock_generator.vocabulary.__iter__ = lambda self: iter([])
22
mock_generator.return_value = '{"result": 6}'
23
with patch("outlines.generate.json", return_value=mock_generator):
24
outline_instance = Outline(mock_model, template, OutputModel)
0 commit comments