mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-02 19:23:54 +00:00
Update tests/eye_test.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0a8a4247e6
commit
4a47ff3679
1 changed files with 0 additions and 7 deletions
|
@ -5,13 +5,6 @@ from mini_bdx_runtime.eyes import Eyes, LEFT_EYE_GPIO, RIGHT_EYE_GPIO
|
|||
|
||||
eye_delay = 2.5
|
||||
|
||||
@pytest.fixture
|
||||
def eyes():
|
||||
"""Fixture to create and cleanup Eyes instance"""
|
||||
eyes_instance = Eyes()
|
||||
yield eyes_instance
|
||||
eyes_instance.cleanup() # Ensure cleanup after each test
|
||||
|
||||
def test_eyes_initialization(eyes):
|
||||
"""Test that eyes are properly initialized"""
|
||||
assert eyes is not None
|
||||
|
|
Loading…
Reference in a new issue