r2b2.tests.test_cli
¶
Module Contents¶
- r2b2.tests.test_cli.test_interactive_simple()[source]¶
Testing r2b2 interactive
Simple test of interactive module where contest and audit creation occur without error The audit should run and stop in the first round.
- r2b2.tests.test_cli.test_interactive_given_audit()[source]¶
Testing r2b2 interactive -a brla -r 0.1 -m 0.2
Test of interactive module where audit type, risk limit, and max fraction to draw are given as cli option arguments. The audit should run and stop in the first round.
- r2b2.tests.test_cli.test_interactive_given_contest()[source]¶
Testing r2b2 interactive –contest-file=/…/single_contest_template.json
Test of interactive module where contest is given as a JSON file and parsed into Contest object. The audit should run and stop in the first round.
- r2b2.tests.test_cli.test_interactive_given_both()[source]¶
Testng r2b2 interactive -a brla -r 0.1 -m 0.2 –contest-file=/…/single_contest_template.json
Test of interactive module where contest JSON file and audit parameters are given as cli arguments. The audit should run and stop in the first round.
- r2b2.tests.test_cli.test_interactive_multi_round()[source]¶
Testing r2b2 interactive -a blra -r 0.1 -m 0.1 –contest-file=/…/basic_contest.json
- r2b2.tests.test_cli.test_bulk_min_to_max()[source]¶
Testing r2b2 bulk /…/single_contest_template.json brla -r 0.1 -m 0.4
- r2b2.tests.test_cli.test_bulk_round_list()[source]¶
Testing `r2b2 bulk -l CandidateB -r ‘100 200 300’ /…/basic_contest.json brla 0.1 0.05 `