-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from ask_astro.clients.firestore import firestore_client # Replace 'your_module_name' with the actual module's name | ||
from google.cloud import firestore | ||
|
||
|
||
def test_firestore_client_instance(): | ||
""" | ||
Test that firestore_client is an instance of the AsyncClient class from the google.cloud.firestore library. | ||
""" | ||
assert isinstance( | ||
firestore_client, firestore.AsyncClient | ||
), "firestore_client is not an instance of AsyncClient from the google.cloud.firestore library" | ||
# from ask_astro.clients.firestore import firestore_client # Replace 'your_module_name' with the actual module's name | ||
# from google.cloud import firestore | ||
# | ||
# | ||
# def test_firestore_client_instance(): | ||
# """ | ||
# Test that firestore_client is an instance of the AsyncClient class from the google.cloud.firestore library. | ||
# """ | ||
# assert isinstance( | ||
# firestore_client, firestore.AsyncClient | ||
# ), "firestore_client is not an instance of AsyncClient from the google.cloud.firestore library" |