Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jul 17, 2023

This PR implements two separate test clients that combine to test every gRPC method wrapper defined in our DataClient class. Tthe PR also implements two mock services that simulate responses from app. One test client/mock service duo is for the data methods, and the other is for the data sync (upload) methods. Finally, the PR also updates binary_data_by_filter() to return a list of bytes--as opposed to a list of SensorData objects.

@ghost ghost requested review from njooma and stuqdog July 17, 2023 20:14
@ghost ghost self-requested a review as a code owner July 17, 2023 20:14
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! a couple comments but looks great overall, thanks for working on this

@ghost ghost requested a review from stuqdog July 18, 2023 18:05
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment which we might not want to implement because it'll be a breaking change, but still important to note.

@ghost ghost requested review from njooma and stuqdog July 19, 2023 19:42
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit but otherwise lgtm!

Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending @stuqdog's requests

@ghost ghost requested a review from stuqdog July 20, 2023 15:02
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! lgtm :)

@ghost ghost merged commit 82eb23f into viamrobotics:main Jul 20, 2023
@ghost ghost deleted the RSDK-3898/data-API-testing branch July 20, 2023 15:05
This pull request was closed.
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.

3 participants