File: test_input.py

package info (click to toggle)
pyglet 2.0.17%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,560 kB
  • sloc: python: 80,579; xml: 50,988; ansic: 171; makefile: 146
file content (9 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from pyglet import input


def test_parse_all_controller_mappings():
    # check all the mapping strings to confirm
    # that they can be properly parsed.
    for mapping in input.controller.mapping_list:
        guid = mapping.split(',')[0]
        assert input.controller.get_mapping(guid)