File: test-postcorrect.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 (22 lines) | stat: -rwxr-xr-x 644 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
#! /usr/bin/env python3

# GUI test from a zip archive, with postcorrection and manual association

import amc

a = amc.AMC()

a.launch()
a.new_project_from_archive('test-postcorrect/saved.zip')
a.copy_in_src_dir('test-postcorrect/scan-0.tiff')
a.copy_in_src_dir('test-postcorrect/scan-1.tiff')
a.auto_data_capture(files=['scan-0.tiff', 'scan-1.tiff'])
a.mark()
a.postcorrect(2,0)
a.add_files_to_project('test-postcorrect/people.csv')
a.set_students_list('people.csv', auto=False, uid='student')
a.manual_association(['Teacher','Jojo'])
a.report(output_format='CSV')
a.check_csv_results({"3": { "Mark": "12,5", "Name": "Jojo" }})

a.finished()