Skip to content

Commit

Permalink
TEST: Add basic tests that classes import correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Apr 18, 2024
1 parent b3e29a8 commit e40bf31
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_coder/test_millikey.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def test_import():
"""
Test that classes can import without error
"""
from psychopy_labhackers.millikey import MillikeyHIDButtonGroup, MillikeySerialButtonGroup

def test_entry_points():
"""
Test that classes are available from the correct locations after registering entry points
"""
# activate plugins
from psychopy.plugins import activatePlugins
activatePlugins()
# import from entry points
from psychopy.hardware import MillikeyHIDButtonGroup, MillikeySerialButtonGroup

0 comments on commit e40bf31

Please sign in to comment.