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

[tor-commits] [sbws/master] Remove init



commit 4d022d925c0363f93114a622972d30a14bf8deee
Author: juga0 <juga@xxxxxxxxxx>
Date:   Wed Jul 18 20:20:01 2018 +0000

    Remove init
---
 tests/integration/test_sbws.py | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tests/integration/test_sbws.py b/tests/integration/test_sbws.py
deleted file mode 100644
index 5122f38..0000000
--- a/tests/integration/test_sbws.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from tempfile import TemporaryFile
-import subprocess
-import os
-
-
-def test_simple_init(tmpdir):
-    # out = None
-    err = None
-    with TemporaryFile('w+t') as stdout, TemporaryFile('w+t') as stderr:
-        retcode = subprocess.call(
-            'sbws -d {} --log-level debug init'.format(tmpdir).split(),
-            stdout=stdout, stderr=stderr)
-        stdout.seek(0, 0)
-        stderr.seek(0, 0)
-        # out = stdout.read()
-        err = stderr.read()
-    assert retcode == 0
-    assert len(err) == 0
-    conf_fname = os.path.join(str(tmpdir), 'config.ini')
-    assert os.path.exists(conf_fname)
-    with open(conf_fname, 'rt') as fd:
-        assert len(fd.read()) > 0



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