[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit de5a7e96190451c8b9f00ad91493d48af634aece
Author: juga0 <juga@xxxxxxxxxx>
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
+
+
+@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
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits