File: test-simple.py

package info (click to toggle)
auto-multiple-choice 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 92,612 kB
  • sloc: perl: 26,752; xml: 24,889; cpp: 1,997; python: 895; makefile: 569; sh: 233; ansic: 195
file content (24 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/env python3

# GUI test from a standard template, with photocopy mode

import amc

a = amc.AMC()

a.launch()
a.new_project_from_template()
a.build_documents()
a.copy_in_src_dir('test-simple/1.jpg')
a.copy_in_src_dir('test-simple/2.tif')
a.auto_data_capture(files=['1.jpg', '2.tif'],
                    prealloc=True,
                    mode='Some answer sheets were photocopied')
a.mark()
a.set_options()
a.report(output_format='CSV')
a.check_csv_results({"3:1": { "Mark": "5",  "pref": "1", "prez": "0" },
                     "3:2": { "Mark": "20", "pref": "3", "prez": "1" },
                     })

a.finished()