Mercurial > p > roundup > code
annotate test/requirements.txt @ 8580:5cba36e42b8f
chore: refactor replace urlparse with urlsplit and use urllib_
Python docs recommend use of urlsplit() rather than
urlparse(). urlsplit() is a little faster and doesn't try to split the
path into path and params using the rules from an obsolete RFC.
actions.py, demo.py, rest.py, client.py
Replace urlparse() with urlsplit()
actions.py
urlsplit() produces a named tuple with one fewer elements (no
.param). So fixup calls to urlunparse() so they have the proper
number of elements in the tuple.
also merge url filtering for param and path.
demo.py, rest.py:
Replace imports from urlparse/urllib.parse with
roundup.anypy.urllib_ so we use the same interface throughout the
code base.
test/test_cgi.py:
Since actions.py filtering for invali urls not split by path/param,
fix tests for improperly quoted url's.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 19 Apr 2026 22:58:59 -0400 |
| parents | 4006ddad6b8a |
| children | 363a6bb5a6ae |
| 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 |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
4 # coverage stats |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
5 coverage |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
6 # fuzz tests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
7 hypothesis |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
8 # mock - everybody's favorite |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
9 mock |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
10 # JWT tests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
11 pyjwt |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
12 # 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
|
13 requests |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
14 |
|
4006ddad6b8a
docs: add test/requirements.txt and doc same in developers.txt
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
15 # 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
|
16 pyreadline3 ; sys_platform == 'win32' |
