-
-
Notifications
You must be signed in to change notification settings - Fork 152
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 pytest-httpbin to run the test suite locally #139
Conversation
Replace the use of online httpbin with the local httpbin instance provided via pytest-httpbin package. This makes the test suite offline, effectively removing the need for pytest-network as well. Fixes ross#136
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.
Looks reasonable. One question inline before ✅
zipp==3.15.0 | ||
zipp==3.16.2 | ||
zope.event==5.0 | ||
zope.interface==6.0 |
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.
These updated with ./script/update-requirements
? When I run it locally on this branch I get a few diffs:
coho:requests-futures ross$ git diff
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 330d5b6..c652801 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -3,7 +3,6 @@ Jinja2==3.1.2
MarkupSafe==2.1.3
PyYAML==6.0.1
Pygments==2.16.1
-SecretStorage==3.3.3
Werkzeug==2.3.6
attrs==23.1.0
black==23.7.0
@@ -14,7 +13,6 @@ build==0.10.0
cffi==1.15.1
click==8.1.6
coverage==7.2.7
-cryptography==41.0.3
decorator==5.1.1
docutils==0.20.1
flasgger==0.9.7.1
@@ -26,7 +24,6 @@ iniconfig==2.0.0
isort==5.12.0
itsdangerous==2.1.2
jaraco.classes==3.3.0
-jeepney==0.8.0
jsonschema-specifications==2023.7.1
jsonschema==4.19.0
keyring==24.2.0
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.
Yes, that's how I updated them. I wonder if the difference could be because of different Python version — I ran it with 3.11.4.
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.
Doesn't appear to be:
(env) coho:requests-futures ross$ python --version
Python 3.11.4
Maybe OS. I'm on OSX. Anyway. Just seemed like odd requirements, but probably not hurting anything, I guess.
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.
Ah yes, it's probably because I'm running on Linux ;-).
Thanks! |
Thank you for the investigation/PR. |
Replace the use of online httpbin with the local httpbin instance
provided via pytest-httpbin package. This makes the test suite offline,
effectively removing the need for pytest-network as well.