Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firestore: support emulator in client. #8721

Merged
merged 10 commits into from
Jul 27, 2019
4 changes: 2 additions & 2 deletions firestore/tests/unit/v1/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def test__firestore_api_property_with_emulator(
self.assertIs(firestore_api, mock_client.return_value)
self.assertIs(firestore_api, client._firestore_api_internal)

self.assertEqual(mock_insecure_channel.call_count, 1)
self.assertEqual(mock_insecure_channel.call_args.args[0], emulator_host)
mock_insecure_channel.assert_called_once_with(emulator_host)


# Call again to show that it is cached, but call count is still 1.
self.assertIs(client._firestore_api, mock_client.return_value)
Expand Down