Skip to content

Commit

Permalink
tests work only offline, use pytest-socket to make sure no networki…
Browse files Browse the repository at this point in the history
…ng happens
  • Loading branch information
deeenes committed Oct 3, 2023
1 parent 2df835e commit e3a2db9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import pickle
import logging

from pytest_socket import disable_socket

disable_socket()
import pytest
import requests

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
per-file-ignores =
*/__init__.py: D104, F401,
tests/* : D101, D102, D103, D104
tests/conftest.py: D101, D102, D103, E402
# D100 Missing docstring in public module
# D107 Missing docstring in __init__
# W503 line break before binary operator
Expand Down Expand Up @@ -58,6 +59,7 @@ deps =
pytest
pytest-mock
pytest-cov
pytest-socket
requests-mock>=1.9.2
numpy
networkx
Expand Down

0 comments on commit e3a2db9

Please sign in to comment.