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

Add recording smoke test #938

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Jan 20, 2025

Related to #775

Add a recording smoke test to ensure the recording functionality works as expected.

  • New Test File: Add tests/openadapt/test_record.py.
  • Setup and Teardown: Use pytest fixtures to set up and tear down the test environment.
  • Recording Test:
    • Call openadapt.record and wait for the recording.started signal.
    • Stop the recording by emitting the stop sequence.
    • Assert the state of the database to ensure the recording is created.
    • Assert the state of the filesystem to ensure the video and performance plots are created.

/claim #775

Related to OpenAdaptAI#775

Add a recording smoke test to ensure the recording functionality works as expected.

* **New Test File**: Add `tests/openadapt/test_record.py`.
* **Setup and Teardown**: Use `pytest` fixtures to set up and tear down the test environment.
* **Recording Test**: 
  - Call `openadapt.record` and wait for the `recording.started` signal.
  - Stop the recording by emitting the stop sequence.
  - Assert the state of the database to ensure the recording is created.
  - Assert the state of the filesystem to ensure the video and performance plots are created.
@algora-pbc algora-pbc bot mentioned this pull request Jan 20, 2025
Copy link

algora-pbc bot commented Jan 20, 2025

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

@abrichr
Copy link
Member

abrichr commented Jan 20, 2025

Thanks @vishwamartur! Can you please paste the console output from the test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants