From aeac305dd55234acc12d495b8fa2d5cb43accc05 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 8 Sep 2023 04:03:23 +0300 Subject: [PATCH] Test process with --tor, set env variable HOME for tor --- minode/tests/test_process.py | 2 +- tox.ini | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/minode/tests/test_process.py b/minode/tests/test_process.py index 50ffd6a..48bc85f 100644 --- a/minode/tests/test_process.py +++ b/minode/tests/test_process.py @@ -156,7 +156,7 @@ class TestProcessNoI2P(TestProcessShutdown): @unittest.skipIf(tor_port_free, 'No running tor detected') class TestProcessTor(TestProcessProto): """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 def test_connections(self): diff --git a/tox.ini b/tox.ini index 6843306..97ade46 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,8 @@ envlist = reset,py3{6,7,8,9,10,11},stats skip_missing_interpreters = true [testenv] +setenv = + HOME = {envtmpdir} deps = -rrequirements.txt commands = coverage run -a -m tests