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

Realistic Mock for test_device_update #58

Open
t-sasatani opened this issue Nov 6, 2024 · 0 comments
Open

Realistic Mock for test_device_update #58

t-sasatani opened this issue Nov 6, 2024 · 0 comments

Comments

@t-sasatani
Copy link
Collaborator

The current tests for device_update only test update functions and models, but we eventually want a more realistic Mock class that imitates device behavior.

  • Step 1: Make a mock class that imitates the current update controller and have methods that just consume data like okDevMock.setWire. (Might not change test strength much because the current update controller is a one-way communication device and doesn't have response, but good to do anyways.)
  • Step 2: Make an integrated mock class that does the entire process from command generation to confirming the update. This should be something like a class that accepts update commands and returns updated configurations through okDevMock.
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

No branches or pull requests

1 participant