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

[tor-commits] [sbws/master] Replace conf['paths'] by conf.getpath('paths')



commit bb2c5129ae19d4f39e9abd0d1188da2a2334bdac
Author: juga0 <juga@xxxxxxxxxx>
Date:   Tue Jul 24 17:25:50 2018 +0000

    Replace conf['paths'] by conf.getpath('paths')
---
 tests/unit/conftest.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index e0fa938..3ebee46 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -182,7 +182,7 @@ def sbwshome_error_result(sbwshome_only_datadir, conf):
     '''
     Creates an ~/.sbws with a single fresh ResultError in it
     '''
-    dd = conf['paths']['datadir']
+    dd = conf.getpath('paths', 'datadir')
     write_result_to_datadir(RESULT_ERROR_STREAM, dd)
     return sbwshome_only_datadir
 
@@ -192,7 +192,7 @@ def sbwshome_success_result(sbwshome_only_datadir, conf):
     '''
     Creates an ~/.sbws with a single fresh ResultSuccess in it
     '''
-    dd = conf['paths']['datadir']
+    dd = conf.getpath('paths', 'datadir')
     write_result_to_datadir(RESULT_SUCCESS1, dd)
     return sbwshome_only_datadir
 
@@ -202,7 +202,7 @@ def sbwshome_success_result_one_relay(sbwshome_only_datadir, conf):
     '''
     Creates an ~/.sbws with a a couple of fresh ResultSuccess for one relay
     '''
-    dd = conf['paths']['datadir']
+    dd = conf.getpath('paths', 'datadir')
     write_result_to_datadir(RESULT_SUCCESS1, dd)
     write_result_to_datadir(RESULT_SUCCESS1, dd)
     return sbwshome_only_datadir
@@ -214,7 +214,7 @@ def sbwshome_success_result_two_relays(sbwshome_only_datadir, conf):
     Creates an ~/.sbws with a a couple of fresh ResultSuccess for a couple or
     relays
     '''
-    dd = conf['paths']['datadir']
+    dd = conf.getpath('paths', 'datadir')
     write_result_to_datadir(RESULT_SUCCESS1, dd)
     write_result_to_datadir(RESULT_SUCCESS1, dd)
     write_result_to_datadir(RESULT_SUCCESS2, dd)



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