@@ -11,9 +11,7 @@ Get your working copy :
1111
1212 $ git clone https://github.com/Pylons/webtest.git
1313 $ cd webtest
14- $ virtualenv .
15- $ . bin/activate
16- $ python setup.py dev
14+ $ uv sync
1715
1816 Now, you can hack.
1917
@@ -23,72 +21,53 @@ Execute tests
2321
2422.. code-block :: bash
2523
26- $ bin/pytest
27- Doctest: forms.rst ... ok
28- Doctest: index.rst ... ok
29-
30- ...
31-
32- test_url_class (tests.test_testing.TestTesting) ... ok
33- tests.test_testing.test_print_unicode ... °C
34- ok
35-
36- Name Stmts Miss Cover Missing
37- ------------------------------------------------
38- webtest 18 0 100%
39- webtest.app 603 92 85% 48, 61-62, 94, 98, 212-221, 264-265, 268-272, 347, 379-386, 422, 426-428, 432-434, 455, 463, 471, 473, 488, 496-497, 515, 520-527, 548, 553-554, 558-559, 577, 592, 597-598, 618, 624, 661-664, 742, 808, 872, 940-941, 945-948, 961-964, 975, 982, 995, 1000, 1006, 1010, 1049, 1051, 1095-1096, 1118-1119, 1122-1127, 1135-1136, 1148, 1155-1160, 1175
40- webtest.compat 50 11 78% 28-34, 55-56, 61-62
41- webtest.debugapp 58 0 100%
42- webtest.ext 80 0 100%
43- webtest.forms 324 23 93% 23, 49, 58, 61, 92, 116, 177, 205, 411, 478, 482-486, 491-493, 522, 538, 558-561
44- webtest.http 78 0 100%
45- webtest.lint 215 45 79% 135, 176, 214-216, 219-224, 227-231, 234, 243-244, 247, 250-251, 254, 263-264, 270, 274, 307, 311, 335, 359, 407, 424-427, 441-444, 476-479, 493, 508
46- webtest.sel 479 318 34% 38-39, 45-46, 64-78, 88-108, 120, 126, 151-153, 156-158, 164-165, 168-191, 194-201, 219-231, 236, 240, 243-259, 263-297, 301-306, 316-326, 331-336, 340, 344, 347-352, 357-359, 364, 392-394, 397-404, 408, 412-417, 421, 425-426, 430, 434, 438, 442, 445, 448-457, 470-480, 483-485, 488, 492, 495, 503, 506, 515-516, 520, 524, 528, 533, 538, 542-544, 547, 560-565, 576, 579, 582, 593-596, 599-602, 605-606, 617-620, 623-642, 668-677, 680-688, 715, 720, 732, 735, 744-754, 757-762, 770-779, 791, 794, 805-809, 813-826, 838-842
47- webtest.utils 99 11 89% 19-20, 23, 26, 32, 38, 100, 109, 152-154
48- ------------------------------------------------
49- TOTAL 2004 500 75%
50- ----------------------------------------------------------------------
51- Ran 70 tests in 14.940s
24+ $ uv run pytest
25+ ============================= test session starts ==============================
26+ platform linux -- Python 3.14.0, pytest-9.0.2, pluggy-1.6.0
27+ rootdir: /home/user/webtest
28+ configfile: pyproject.toml
29+ plugins: cov-7.0.0
30+ collected 206 items
31+
32+ tests/test_app.py ............................................ [ 21%]
33+ tests/test_authorisation.py ... [ 22%]
34+ tests/test_debugapp.py ...................... [ 33%]
35+ tests/test_ext.py . [ 33%]
36+ tests/test_forms.py .................................................... [ 59%]
37+ . [ 59%]
38+ tests/test_http.py .... [ 61%]
39+ tests/test_lint.py ............................ [ 75%]
40+ tests/test_response.py ............................... [ 90%]
41+ tests/test_sel.py . [ 90%]
42+ tests/test_utils.py .................. [ 99%]
43+ webtest/forms.py . [100%]
44+
45+ ============================= 206 passed in 3.81s ==============================
5246
5347
5448 Use tox to test many Python versions
5549====================================
5650
57- `Tox <https://tox.readthedocs.io/en/latest/ >`_ installation :
58-
59- .. code-block :: bash
60-
61- $ pip install tox
62- $ tox
63-
64- Launch tests with *tox * :
65-
6651.. code-block :: bash
6752
68- $ bin/ tox
69- py26 : commands succeeded
70- py27 : commands succeeded
71- py32 : commands succeeded
72- py33 : commands succeeded
53+ $ uvx --with tox-uv tox
54+ py39 : commands succeeded
55+ py310 : commands succeeded
56+ py311 : commands succeeded
57+ py312 : commands succeeded
7358
74- To execute test on all python versions, you need to have ``python2.6 ``, ``python2.7 ``, ``python3.2 `` and ``python3.3 `` in your ``PATH ``.
59+ To execute tests on all Python versions, you need to have ``python3.9 ``, ``python3.10 ``, ``python3.11 `` and ``python3.12 `` in your ``PATH ``.
7560
7661
7762Generate documentation
7863======================
7964
8065.. code-block :: bash
8166
82- $ pip install Sphinx
8367 $ cd docs
8468 $ make html
85- ../bin/sphinx-build -b html -d _build/doctrees . _build/html
86- Running Sphinx v1.1.3
87- loading pickled environment... done
88-
8969 ...
90-
91- build succeeded, 3 warnings.
70+ build succeeded.
9271
9372 Build finished. The HTML pages are in _build/html.
9473
0 commit comments