File: testjson.py

package info (click to toggle)
python-ly 0.9.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,604 kB
  • sloc: python: 12,559; xml: 1,887; makefile: 155
file content (24 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# test dataset for simpler handling of JSON request during testing phase

test_request = {
    'commands': [
        {
            'command': 'transpose',
            'args': 'c d'
        },
        { 'command': 'reformat' },
        {
            'command': 'highlight',
            'variables': { 'full-html': 'false' }
        },
        { 'command': 'musicxml' },
        { 'command': 'mode' },
        { 'command': 'version' }
    ],
    'options': {
        'encoding': 'UTF-16',
        'language': "deutsch"
    },
    'data': "%No JSON data supplied. This is a test request.\n" +
            "\\relative c' {\nc4 ( d e )\n}"
}