Skip to content

Commit

Permalink
move no_proxy to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahman-thafeer committed Jul 11, 2022
1 parent da42fcc commit a071ff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def test_works_from_different_directory():
class TestSlimScan:
@staticmethod
def test_basic():
os.environ['no_proxy'] = '*'
with mock_printer(main_module) as printer:
main_module.main(['scan', '--slim', 'test_data'])

Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ tox_pip_extensions_ext_venv_update = true

[testenv]
passenv = SSH_AUTH_SOCK
# NO_PROXY is needed to call requests API within a forked process
# when using macOS and python version 3.6/3.7
setenv =
NO_PROXY = '*'
deps = -rrequirements-dev.txt
whitelist_externals = coverage
commands =
Expand Down

0 comments on commit a071ff1

Please sign in to comment.