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 ab20bbf commit 0017b48Copy full SHA for 0017b48
tests/test_simple_lazy.py
@@ -42,7 +42,7 @@ def test_client_created_when_model_called():
42
# Test that we can create a model function with a token available
43
# Mock cog to provide a token
44
mock_scope = MagicMock()
45
- mock_scope.context.items.return_value = [("REPLICATE_API_TOKEN", "test-token")]
+ mock_scope.context = {"REPLICATE_API_TOKEN": "test-token"}
46
mock_cog = MagicMock()
47
mock_cog.current_scope.return_value = mock_scope
48
0 commit comments