Skip to content
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

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Aug 11, 2023

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.

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
@mgorny mgorny mentioned this pull request Aug 11, 2023
Copy link
Owner

@ross ross left a 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
Copy link
Owner

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

Copy link
Contributor Author

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.

Copy link
Owner

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.

Copy link
Contributor Author

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 ;-).

@ross ross merged commit d9998d3 into ross:main Aug 11, 2023
5 checks passed
@mgorny mgorny deleted the pytest-httpbin branch August 11, 2023 18:15
@mgorny
Copy link
Contributor Author

mgorny commented Aug 11, 2023

Thanks!

@ross
Copy link
Owner

ross commented Aug 11, 2023

Thank you for the investigation/PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants