Skip to content

Commit 0017b48

Browse files
zekearon
andauthored
Update tests/test_simple_lazy.py
Co-authored-by: Aron Carroll <[email protected]>
1 parent ab20bbf commit 0017b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_simple_lazy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_client_created_when_model_called():
4242
# Test that we can create a model function with a token available
4343
# Mock cog to provide a token
4444
mock_scope = MagicMock()
45-
mock_scope.context.items.return_value = [("REPLICATE_API_TOKEN", "test-token")]
45+
mock_scope.context = {"REPLICATE_API_TOKEN": "test-token"}
4646
mock_cog = MagicMock()
4747
mock_cog.current_scope.return_value = mock_scope
4848

0 commit comments

Comments
 (0)