issues Search Results · repo:miketheman/pytest-socket language:Python
Filter by
62 results
(107 ms)62 results
inmiketheman/pytest-socket (press backspace or delete to remove)When running a subprocess() command in the context of a test case, the settings are not carried over into the
subprocess, as it has its own execution context.
While there s low likelihood that this library ...
enhancement
miketheman
- Opened on Jan 3
- #401
Based on the documentation and the code it seems that it is only possible to allow all sockets. We have a test case
where we just want to enable the unix socket for this test. It would be great if this ...
enhancement
mschoettle
- 4
- Opened on Dec 9, 2024
- #395
Hello @miketheman. For our usage, we would like to set at invoke time the allowed host through environment variables, to
allow access to docker-compose s redis and postgres. Would that something you would ...
deronnax
- 2
- Opened on Jul 2, 2024
- #356
Hi there,
We are trying to disable socks globally via the following snippet in our conftest file:
from pytest_socket import disable_socket
def pytest_runtest_setup():
disable_socket()
This works ...
ian-tvt
- Opened on Jun 28, 2024
- #354
I like this package, but now I need to only disable internet in part of my test - this way I can test if a certain
caching method indeed prevents requests to pages, and thus will work when connection fails. ...
question
RoelantStegmann
- Opened on Mar 29, 2024
- #325
I m packaging your module as an rpm package so I m using the typical PEP517 based build, install and test cycle used on
building packages from non-root account.
- python3 -sBm build -w --no-isolation ...
stale
kloczek
- 8
- Opened on Feb 14, 2024
- #308
Responses (used by requests) creates a dummy socket that isn’t used to connect to anything:
https://github.com/getsentry/responses/blob/c46cb060311f53ac86e4497ec3bfcfa69fab9aed/responses/init.py#L535
...
flying-sheep
- 2
- Opened on Nov 14, 2023
- #277
I have been using disable_socket for a while now on a repo of mine via conftest.py. I have it set up verbatim as per the
docs.
from pytest_socket import disable_socket
def pytest_runtest_setup():
...
JSaja
- 2
- Opened on Nov 6, 2023
- #268
Python 3.7 is end of life, and Python 3.12 is being released soon.
Update the CI and any associated code to support 3.8-3.12
chore
miketheman
- 1
- Opened on Oct 2, 2023
- #259
Hello,
I m trying to block connections form everywhere except for localhost so that VS Code can still communicate with pytest.
While working on this I ve stumbled upon an issue where I noticed that if ...
samdatkins
- 5
- Opened on Aug 25, 2023
- #246

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.