New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Hyperlink's Hypothesis strategies #393
Conversation
Build is failing due to a missing file from Hyperlink. I've opened a PR for that: python-hyper/hyperlink#134 |
OK, hyperlink has a fix on master |
# Conflicts: # src/klein/test/_strategies.py
Codecov Report
@@ Coverage Diff @@
## master #393 +/- ##
==========================================
- Coverage 98.66% 98.64% -0.02%
==========================================
Files 46 45 -1
Lines 3884 3850 -34
Branches 252 249 -3
==========================================
- Hits 3832 3798 -34
Misses 36 36
Partials 16 16
Continue to review full report at Codecov.
|
@@ -36,6 +54,59 @@ | |||
__all__ = () | |||
|
|||
|
|||
T = TypeVar("T") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section moved here; wasn't needed by Hyperlink.
|
||
attrs==20.1.0 | ||
hyperlink==20.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until the next Hypothesis release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I had one question on the Tox config, but it will certainly work as-is so I'm approving.
@@ -33,10 +33,10 @@ deps = | |||
tw1910: Twisted==19.10.0 | |||
tw203: Twisted==20.3.0 | |||
twcurrent: Twisted | |||
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip | |||
twtrunk: git+git://github.com/twisted/twisted@trunk#egg=Twisted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this from the archive form?
* master: (33 commits) [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update http ➜ https Move comment to what it's referring to Fix fragile line numbers Copyright dance [requires.io] dependency update Update MANIFEST.in ignore these flake8 errors that make no sense re-order in a way that seems logical today Fix up the not-type-checking signatures for Arg, KwArg, VarArg, DefaultNamedArg tox -e lint should probably actually run something Move check-manifest to pre-commit Quote repo versions Fix packaging Update needs: parameter Disable lint job for a sec ... # Conflicts: # src/klein/test/_strategies.py
Most of patches are home-grown instead of from upstream, as upstream fixes are quite large and cannot be cleanly backported. Specifically, upstream moves test strategies from Klein to Hyperlink [1] and drop Python 2.x support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller, while it cannot be cleanly backported, either. [1] twisted/klein#393 [2] twisted/klein#328 [3] twisted/klein#355 [4] twisted/klein#499 git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Most of patches are home-grown instead of from upstream, as upstream fixes are quite large and cannot be cleanly backported. Specifically, upstream moves test strategies from Klein to Hyperlink [1] and drop Python 2.x support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller, while it cannot be cleanly backported, either. [1] twisted/klein#393 [2] twisted/klein#328 [3] twisted/klein#355 [4] twisted/klein#499 git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Use Hypothesis strategies that are now provided by Hyperlink, remove them from Klein.
These were copied there from Klein to make them more available to projects and manage them with Hyperlink itself.