Skip to content

Conversation

@AChenQ
Copy link
Collaborator

@AChenQ AChenQ commented Jun 2, 2021

No description provided.

@AChenQ AChenQ requested a review from rexzheng324-c as a code owner June 2, 2021 08:14
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from babbddc to 0a3ffc6 Compare June 2, 2021 08:18
@AChenQ AChenQ requested a review from linjiX as a code owner June 2, 2021 08:18
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch 2 times, most recently from bc7c0ce to decd0b5 Compare June 2, 2021 10:15
@coveralls
Copy link

coveralls commented Jun 2, 2021

Pull Request Test Coverage Report for Build 918259120

  • 151 of 151 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.4%) to 85.223%

Totals Coverage Status
Change from base Build 917700346: 2.4%
Covered Lines: 4735
Relevant Lines: 5556

💛 - Coveralls

@AChenQ AChenQ force-pushed the T15773_client_unit_test branch 2 times, most recently from ab2a662 to c95052b Compare June 2, 2021 13:18
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from c95052b to 636edfa Compare June 3, 2021 03:06
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from 636edfa to 63a3f46 Compare June 3, 2021 04:21
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch 2 times, most recently from fcfd0b6 to c53a8dd Compare June 3, 2021 06:25
assert dataset_client._status.branch_name == "main"
get_dataset.assert_called_once_with("test")

def test_get_dataset_(self, mocker):
Copy link
Contributor

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.

@AChenQ AChenQ force-pushed the T15773_client_unit_test branch 5 times, most recently from f7a67ef to a8bdb93 Compare June 7, 2021 02:30
)
configs = self.gas_client.list_auth_storage_configs()

assert len(configs) == 1
Copy link
Contributor

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(
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from a8bdb93 to 1401cba Compare June 7, 2021 09:25
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from 1401cba to 8d8409f Compare June 8, 2021 12:25
@AChenQ AChenQ force-pushed the T15773_client_unit_test branch from 8d8409f to 2bab876 Compare June 8, 2021 12:30
@AChenQ AChenQ merged commit dd54c39 into Graviti-AI:main Jun 8, 2021
@AChenQ AChenQ deleted the T15773_client_unit_test branch June 8, 2021 12:30
linjiX pushed a commit that referenced this pull request Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants