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

tests: Fix selfdrive state machine imports #33571

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Conversation

sunnyhaibin
Copy link
Contributor

Description

  • Fixed incorrect import paths in test_state_machine.py
  • Changed import of StateMachine and SOFT_DISABLE_TIME from openpilot.selfdrive.controls.lib.selfdrive to openpilot.selfdrive.selfdrived and openpilot.selfdrive.selfdrived.state

Verification

  • Ran unit test for selfdrive/selfdrived/tests/test_state_machine.py
  • Verified all tests passed with the correct imports

@sunnyhaibin sunnyhaibin changed the title selfdrive: Fix state machine test imports tests: Fix selfdrive state machine imports Sep 17, 2024
@sshane sshane mentioned this pull request Sep 17, 2024
@sshane sshane merged commit e549f7a into commaai:master Sep 17, 2024
8 of 9 checks passed
@sunnyhaibin sunnyhaibin deleted the patch-5 branch September 17, 2024 23:23
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request Sep 24, 2024
* selfdrive: Fix state machine test imports

* it's the same file

* Update selfdrive/selfdrived/tests/test_state_machine.py

* Update selfdrive/selfdrived/tests/test_state_machine.py

---------

Co-authored-by: Shane Smiskol <[email protected]>
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