Mercurial > p > roundup > code
annotate test/requirements.txt @ 8592:363a6bb5a6ae default tip
test: add subtest support to testTokenlessCsrfProtection
Make each list driven test case a subtest of its own. Add
pytest-subtest pip module to make this work.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 21 Apr 2026 12:55:19 -0400 |
| parents | 4006ddad6b8a |
| children |
| rev | line source |
|---|---|
|
8569
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
1 # the driving harness |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
2 pytest |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
3 |
|
8592
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
4 # set environment variables for redis password etc. from ini/toml |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
5 # settings files. |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
6 pytest-env |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
7 |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
8 # change order of tests to find dependencies |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
9 pytest-randomly |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
10 |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
11 # allows execution of subtests when a test function tests multiple |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
12 # scenarios. It is built into pytest 9.0+, but can co-exist with it |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
13 # and is required for older pytest that run on older python versions. |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
14 pytest-subtests |
|
363a6bb5a6ae
test: add subtest support to testTokenlessCsrfProtection
John Rouillard <rouilj@ieee.org>
parents:
8569
diff
changeset
|
15 |
|
8569
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
16 # coverage stats |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
17 coverage |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
18 # fuzz tests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
19 hypothesis |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
20 # mock - everybody's favorite |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
21 mock |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
22 # JWT tests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
23 pyjwt |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
24 # live_server tests use requests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
25 requests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
26 |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
27 # readline replacement for windows; used for roundup_admin tests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
28 pyreadline3 ; sys_platform == 'win32' |
