mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-17 06:48:20 +00:00
fewer magic numbers (and a fix to upload encoding)
This commit is contained in:
@ -17,6 +17,7 @@ from allmydata.util.configutil import (
|
||||
set_config,
|
||||
write_config,
|
||||
)
|
||||
from allmydata import client
|
||||
|
||||
import pytest_twisted
|
||||
|
||||
@ -164,6 +165,12 @@ class TahoeProcess(object):
|
||||
def node_dir(self):
|
||||
return self._node_dir
|
||||
|
||||
def get_config(self):
|
||||
return client.read_config(
|
||||
self._node_dir,
|
||||
u"portnum",
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return "<TahoeProcess in '{}'>".format(self._node_dir)
|
||||
|
||||
|
Reference in New Issue
Block a user