Skip to content

Commit

Permalink
Merge pull request #4 from TEParsons/main
Browse files Browse the repository at this point in the history
TEST: Add test that tobii backend is detected by Builder
  • Loading branch information
TEParsons authored Jun 12, 2024
2 parents d8d04e6 + 96a1299 commit f71cd79
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_builder/test_eyetracker_backend.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from psychopy import plugins, experiment


def test_eyetrackerBackendFound():
"""
Check that the backend for this eyetracker is found by Builder
"""
# activate plugins
plugins.activatePlugins()
# make an experiment
exp = experiment.Experiment()
# get the eyetrackers available from its Settings component
backends = exp.settings.params['eyetracker'].allowedVals
# make sure this eyetracker is found
assert 'Tobii Technology' in backends

0 comments on commit f71cd79

Please sign in to comment.