[tor-commits] [sbws/master] Stop using dir as arg in integration tests

juga at torproject.org juga at torproject.org
Tue Sep 18 09:26:12 UTC 2018


commit de5a7e96190451c8b9f00ad91493d48af634aece
Author: juga0 <juga at riseup.net>
Date:   Thu Sep 13 20:05:46 2018 +0000

    Stop using dir as arg in integration tests
---
 tests/integration/conftest.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py
index 4b31f8c..7e1b727 100644
--- a/tests/integration/conftest.py
+++ b/tests/integration/conftest.py
@@ -50,9 +50,16 @@ def sbwshome_dir(sbwshome_empty):
 
 
 @pytest.fixture(scope='session')
-def args(sbwshome_dir, parser):
+def test_config_path(tmpdir):
+    """"""
+    config = tmpdir.join('.sbws.ini')
+    return config
+
+
+ at pytest.fixture(scope='session')
+def args(sbwshome_empty, parser, test_config_path):
     """Args with sbws home in the tests tmp dir."""
-    args = _PseudoArguments(directory=sbwshome_dir, output=sbwshome_dir,
+    args = _PseudoArguments(config=test_config_path, output=sbwshome_empty,
                             scale=False, log_level='debug')
     return args
 





More information about the tor-commits mailing list