-
Notifications
You must be signed in to change notification settings - Fork 35
test(client): add unit test for GAS class #646
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
Conversation
babbddc to
0a3ffc6
Compare
bc7c0ce to
decd0b5
Compare
Pull Request Test Coverage Report for Build 918259120
💛 - Coveralls |
ab2a662 to
c95052b
Compare
c95052b to
636edfa
Compare
636edfa to
63a3f46
Compare
fcfd0b6 to
c53a8dd
Compare
tensorbay/client/tests/test_gas.py
Outdated
| assert dataset_client._status.branch_name == "main" | ||
| get_dataset.assert_called_once_with("test") | ||
|
|
||
| def test_get_dataset_(self, mocker): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check famous third party project and try to find out how to handle the test case of private function.
f7a67ef to
a8bdb93
Compare
tensorbay/client/tests/test_gas.py
Outdated
| ) | ||
| configs = self.gas_client.list_auth_storage_configs() | ||
|
|
||
| assert len(configs) == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to check the value in configs?
| "owner": "", | ||
| "id": "123456", | ||
| } | ||
| get_dataset = mocker.patch( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a specific naming convention for mocker function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A specific name may seems clearer
a8bdb93 to
1401cba
Compare
1401cba to
8d8409f
Compare
8d8409f to
2bab876
Compare
No description provided.