Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit ea87e72

Browse files
committed
Fix config tests
1 parent fba3607 commit ea87e72

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

api/restapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,8 @@ def set_settings(self, request):
821821
else request.args["resolver"][0]
822822
if "libbitcoin_server" in request.args and request.args["libbitcoin_server"][0] != "":
823823
if self.protocol.testnet:
824-
set_value("LIBBITCOIN_SERVERS_TESTNET", "testnet_server_custom", request.args["libbitcoin_server"][0])
824+
set_value("LIBBITCOIN_SERVERS_TESTNET", "testnet_server_custom",
825+
request.args["libbitcoin_server"][0])
825826
else:
826827
set_value("LIBBITCOIN_SERVERS", "server_custom", request.args["libbitcoin_server"][0])
827828
else:

config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ def test_is_seed_tuple():
261261
good = ('seed.openbazaar.org:8080', '5b44be5c18ced1bc9400fe5e79c8ab90204f06bebacc04dd9c70a95eaca6e117')
262262
bad_not_tuple = 'seed.openbazaar.org:8080,5b44be5c18ced1bc9400fe5e79c8ab90204f06bebacc04dd9c70a95eaca6e117'
263263
bad_not_seed_tuple = ('aoioai', 'aoioai')
264-
assert _is_tuple(good)
265-
assert not _is_tuple(bad_not_tuple)
266-
assert not _is_tuple(bad_not_seed_tuple)
264+
assert _is_tuple(good, "seed")
265+
assert not _is_tuple(bad_not_tuple, "seed")
266+
assert not _is_tuple(bad_not_seed_tuple, "seed")
267267

268268

269269
_is_linux()

0 commit comments

Comments
 (0)