Test process with --tor, set env variable HOME for tor

This commit is contained in:
Lee Miller 2023-09-08 04:03:23 +03:00
parent c64446ea02
commit e6fed64d52
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class TestProcessNoI2P(TestProcessShutdown):
@unittest.skipIf(tor_port_free, 'No running tor detected') @unittest.skipIf(tor_port_free, 'No running tor detected')
class TestProcessTor(TestProcessProto): class TestProcessTor(TestProcessProto):
"""A test case for minode process running with tor enabled""" """A test case for minode process running with tor enabled"""
_process_cmd = ['minode', '--socks-proxy', '127.0.0.1:9050'] _process_cmd = ['minode', '--tor']
_wait_time = 60 _wait_time = 60
def test_connections(self): def test_connections(self):

View File

@ -3,6 +3,8 @@ envlist = reset,py3{6,7,8,9,10,11},stats
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
setenv =
HOME = {envtmpdir}
deps = -rrequirements.txt deps = -rrequirements.txt
commands = commands =
coverage run -a -m tests coverage run -a -m tests