Variable rename
This commit is contained in:
@@ -55,13 +55,13 @@ def publish(client_id, onion_hostname, use_tls=True):
|
||||
|
||||
class GivenBroker(TestCase):
|
||||
def setUp(self) -> None:
|
||||
if os.path.exists(torch_sub.database_file):
|
||||
os.remove(torch_sub.database_file)
|
||||
if os.path.exists(torch_sub.database_filename):
|
||||
os.remove(torch_sub.database_filename)
|
||||
|
||||
def tearDown(self) -> None:
|
||||
os.system("docker container stop mosquitto")
|
||||
if os.path.exists(torch_sub.database_file):
|
||||
os.remove(torch_sub.database_file)
|
||||
if os.path.exists(torch_sub.database_filename):
|
||||
os.remove(torch_sub.database_filename)
|
||||
|
||||
@staticmethod
|
||||
def run_broker(tls):
|
||||
@@ -95,7 +95,7 @@ class GivenBroker(TestCase):
|
||||
|
||||
@staticmethod
|
||||
def loadDatabase():
|
||||
with open(torch_sub.database_file, "r") as database_file:
|
||||
with open(torch_sub.database_filename, "r") as database_file:
|
||||
return json.load(database_file)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user