twill
Advanced tools
+1
-1
| [bumpversion] | ||
| current_version = 3.0.2 | ||
| current_version = 3.0.3 | ||
| commit = False | ||
@@ -4,0 +4,0 @@ tag = False |
@@ -7,2 +7,7 @@ .. _changelog: | ||
| 3.0.3 (released 2022-10-12) | ||
| --------------------------- | ||
| * Form numbers are now printed correctly with 'showforms' (#12). | ||
| 3.0.2 (released 2022-04-10) | ||
@@ -9,0 +14,0 @@ --------------------------- |
+1
-1
@@ -25,3 +25,3 @@ # Configuration file for the Sphinx documentation builder. | ||
| # The full version, including alpha/beta/rc tags | ||
| version = release = '3.0.2' | ||
| version = release = '3.0.3' | ||
@@ -28,0 +28,0 @@ |
+2
-2
| Metadata-Version: 2.1 | ||
| Name: twill | ||
| Version: 3.0.2 | ||
| Version: 3.0.3 | ||
| Summary: twill web browsing and testing language and associated utilities. | ||
@@ -45,3 +45,3 @@ Home-page: https://github.com/twill-tools/twill | ||
| The current version 3.0.2 supports Python 3.6 to 3.10. | ||
| The current version 3.0.3 supports Python 3.6 to 3.10. | ||
@@ -48,0 +48,0 @@ See also the [changelog](https://twill-tools.github.io/twill/changelog.html) for a summary of the things that have been changed and improved since version 2.0, and the [acknowledgements](https://twill-tools.github.io/twill/overview.html#acknowledgements) for a short overview of the earlier history of twill. |
+1
-1
@@ -6,3 +6,3 @@ twill: a simple scripting language for web browsing | ||
| The current version 3.0.2 supports Python 3.6 to 3.10. | ||
| The current version 3.0.3 supports Python 3.6 to 3.10. | ||
@@ -9,0 +9,0 @@ See also the [changelog](https://twill-tools.github.io/twill/changelog.html) for a summary of the things that have been changed and improved since version 2.0, and the [acknowledgements](https://twill-tools.github.io/twill/overview.html#acknowledgements) for a short overview of the earlier history of twill. |
+5
-5
@@ -22,9 +22,9 @@ #!/usr/bin/env python3 | ||
| require_twill = ['lxml>=4.6,<5', 'requests>=2.25,<3', 'pyparsing>=2.4,<4'] | ||
| require_docs = ['sphinx>=3.4,<5', 'sphinx_rtd_theme>=0.5,<2'] | ||
| require_twill = ['lxml>=4.9,<5', 'requests>=2.27,<3', 'pyparsing>=3.0,<4'] | ||
| require_docs = ['sphinx>=5.2,<6', 'sphinx_rtd_theme>=1,<2'] | ||
| require_tidy = ['pytidylib>=0.3,<0.4'] | ||
| require_quixote = ['quixote>=3.3,<4'] | ||
| require_wsgi_intercept = ['wsgi_intercept>=1.9,<2'] | ||
| require_quixote = ['quixote>=3.6,<4'] | ||
| require_wsgi_intercept = ['wsgi_intercept>=1.10,<2'] | ||
| require_tests = [ | ||
| 'pytest>=6.2,<7'] + require_tidy + require_quixote + require_wsgi_intercept | ||
| 'pytest>=7,<8'] + require_tidy + require_quixote + require_wsgi_intercept | ||
@@ -31,0 +31,0 @@ |
+15
-5
@@ -11,2 +11,8 @@ import pytest | ||
| def stop(): | ||
| utils.stop_server() | ||
| utils.pop_test_dir() | ||
| request.addfinalizer(stop) | ||
| url = utils.get_url() | ||
@@ -29,8 +35,12 @@ | ||
| def stop(): | ||
| utils.stop_server() | ||
| utils.pop_test_dir() | ||
| return url | ||
| request.addfinalizer(stop) | ||
| return url | ||
| @pytest.fixture() | ||
| def out(): | ||
| from io import StringIO | ||
| from twill import set_output | ||
| output = StringIO() | ||
| set_output(output) | ||
| yield output | ||
| set_output() |
| from .utils import execute_script | ||
| def test(url): | ||
| def test(url, out): | ||
| execute_script('test_global_form.twill', initial_url=url) | ||
| out = out.getvalue() | ||
| assert "Form #1" in out | ||
| assert "Form name=login (#2)" in out | ||
| assert "Form name=login (#3)" in out |
+6
-5
@@ -5,4 +5,4 @@ [tox] | ||
| [testenv:flake8] | ||
| basepython = python3.9 | ||
| deps = flake8>=4,<5 | ||
| basepython = python3.10 | ||
| deps = flake8>=5.0,<6 | ||
| commands = | ||
@@ -12,3 +12,4 @@ flake8 twill tests extras setup.py | ||
| [testenv:docs] | ||
| basepython = python3.9 | ||
| basepython = python3.10 | ||
| deps = sphinx>=5.2,<6 | ||
| extras = | ||
@@ -20,4 +21,4 @@ docs | ||
| [testenv:manifest] | ||
| basepython = python3.9 | ||
| deps = check-manifest>=0.46,<1 | ||
| basepython = python3.10 | ||
| deps = check-manifest>=0.48,<1 | ||
| commands = | ||
@@ -24,0 +25,0 @@ check-manifest -v |
| Metadata-Version: 2.1 | ||
| Name: twill | ||
| Version: 3.0.2 | ||
| Version: 3.0.3 | ||
| Summary: twill web browsing and testing language and associated utilities. | ||
@@ -45,3 +45,3 @@ Home-page: https://github.com/twill-tools/twill | ||
| The current version 3.0.2 supports Python 3.6 to 3.10. | ||
| The current version 3.0.3 supports Python 3.6 to 3.10. | ||
@@ -48,0 +48,0 @@ See also the [changelog](https://twill-tools.github.io/twill/changelog.html) for a summary of the things that have been changed and improved since version 2.0, and the [acknowledgements](https://twill-tools.github.io/twill/overview.html#acknowledgements) for a short overview of the earlier history of twill. |
@@ -1,16 +0,16 @@ | ||
| lxml<5,>=4.6 | ||
| requests<3,>=2.25 | ||
| pyparsing<4,>=2.4 | ||
| lxml<5,>=4.9 | ||
| requests<3,>=2.27 | ||
| pyparsing<4,>=3.0 | ||
| [docs] | ||
| sphinx<5,>=3.4 | ||
| sphinx_rtd_theme<2,>=0.5 | ||
| sphinx<6,>=5.2 | ||
| sphinx_rtd_theme<2,>=1 | ||
| [tests] | ||
| pytest<7,>=6.2 | ||
| pytest<8,>=7 | ||
| pytidylib<0.4,>=0.3 | ||
| quixote<4,>=3.3 | ||
| wsgi_intercept<2,>=1.9 | ||
| quixote<4,>=3.6 | ||
| wsgi_intercept<2,>=1.10 | ||
| [tidy] | ||
| pytidylib<0.4,>=0.3 |
@@ -23,3 +23,3 @@ """twill web browsing and testing language and associated utilities. | ||
| __version__ = '3.0.2' | ||
| __version__ = '3.0.3' | ||
@@ -26,0 +26,0 @@ __url__ = 'https://github.com/twill-tools/twill' |
+1
-1
@@ -173,3 +173,3 @@ """This module implements the TwillBrowser.""" | ||
| """Set the agent string to the given value.""" | ||
| self.headers['User-agent'] = agent | ||
| self.headers['User-Agent'] = agent | ||
@@ -176,0 +176,0 @@ def showforms(self): |
+1
-4
@@ -172,6 +172,3 @@ """ | ||
| name = form.get('name') | ||
| if name: | ||
| info('\nForm name=%s (#%d)', name, n + 1) | ||
| else: | ||
| info('\nForm #%d', n + 1) | ||
| info('\nForm name=%s (#%d)', name, n) if name else info('\nForm #%d', n) | ||
@@ -178,0 +175,0 @@ if form.inputs is not None: |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
232886
0.18%4271
0.21%