mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
fix tests
This commit is contained in:
parent
a5ffa69a3e
commit
f22f8c614f
1 changed files with 3 additions and 3 deletions
|
@ -45,18 +45,18 @@ class WalletTestCase(unittest.TestCase):
|
|||
|
||||
class TestWalletStorage(WalletTestCase):
|
||||
|
||||
def test_read_dictionnary_from_file(self):
|
||||
def test_read_dictionary_from_file(self):
|
||||
|
||||
some_dict = {"a":"b", "c":"d"}
|
||||
contents = json.dumps(some_dict)
|
||||
with open(self.wallet_path, "w") as f:
|
||||
contents = f.write(contents)
|
||||
|
||||
storage = WalletStorage(self.wallet_path)
|
||||
storage = WalletStorage(self.wallet_path, manual_upgrades=True)
|
||||
self.assertEqual("b", storage.get("a"))
|
||||
self.assertEqual("d", storage.get("c"))
|
||||
|
||||
def test_write_dictionnary_to_file(self):
|
||||
def test_write_dictionary_to_file(self):
|
||||
|
||||
storage = WalletStorage(self.wallet_path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue