From 9fda531f6e7e5ab0df1fb5c8a8f88d88fa9f135f Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holger@nahrstaedt.de> Date: Thu, 15 Feb 2018 18:30:36 +0100 Subject: [PATCH] Docs started to fix --- docs/account.rst | 6 +++--- docs/amount.rst | 6 +++--- docs/asset.rst | 2 +- docs/bitshares.rst | 2 +- docs/block.rst | 4 ++-- docs/blockchain.rst | 4 ++-- docs/configuration.rst | 14 ++++++------- docs/contribute.rst | 6 +++--- docs/dex.rst | 2 +- docs/exceptions.rst | 4 ++-- docs/index.rst | 30 +++++++++++++------------- docs/installation.rst | 6 +++--- docs/instances.rst | 10 ++++----- docs/market.rst | 2 +- docs/memo.rst | 12 +++++------ docs/notify.rst | 2 +- docs/price.rst | 2 +- docs/proposal.rst | 4 ++-- docs/storage.rst | 6 +++--- docs/support.rst | 5 ++--- docs/transactionbuilder.rst | 6 +++--- docs/transactions.rst | 2 +- docs/tutorials.rst | 42 ++++++++++++++++++------------------- docs/utils.rst | 2 +- docs/vesting.rst | 2 +- docs/wallet.rst | 24 ++++++++++----------- docs/websocket.rst | 6 +++--- docs/websocketrpc.rst | 2 +- docs/witness.rst | 6 +++--- docs/worker.rst | 6 +++--- tests/test_account.py | 29 ++++++------------------- tests/test_steem.py | 4 ++-- 32 files changed, 121 insertions(+), 139 deletions(-) diff --git a/docs/account.rst b/docs/account.rst index 8a617dfe..c01405cf 100644 --- a/docs/account.rst +++ b/docs/account.rst @@ -5,13 +5,13 @@ Obtaining data of an account. .. code-block:: python - from bitshares.account import Account + from steem.account import Account account = Account("xeroc") print(account) print(account.balances) -.. autoclass:: bitshares.account.Account +.. autoclass:: steem.account.Account :members: -.. autoclass:: bitshares.account.AccountUpdate +.. autoclass:: steem.account.AccountUpdate :members: diff --git a/docs/amount.rst b/docs/amount.rst index 503ed82c..361b3efc 100644 --- a/docs/amount.rst +++ b/docs/amount.rst @@ -5,8 +5,8 @@ For the sake of easier handling of Assets on the blockchain .. code-block:: python - from bitshares.amount import Amount - from bitshares.asset import Asset + from steem.amount import Amount + from steem.asset import Asset a = Amount("1 USD") b = Amount(1, "USD") c = Amount("20", Asset("USD")) @@ -15,5 +15,5 @@ For the sake of easier handling of Assets on the blockchain a += b a /= 2.0 -.. autoclass:: bitshares.amount.Amount +.. autoclass:: steem.amount.Amount :members: diff --git a/docs/asset.rst b/docs/asset.rst index 108af474..eec9e2f9 100644 --- a/docs/asset.rst +++ b/docs/asset.rst @@ -1,5 +1,5 @@ Asset ~~~~~~ -.. autoclass:: bitshares.asset.Asset +.. autoclass:: steem.asset.Asset :members: diff --git a/docs/bitshares.rst b/docs/bitshares.rst index 8797ac2f..40de6bb5 100644 --- a/docs/bitshares.rst +++ b/docs/bitshares.rst @@ -7,5 +7,5 @@ the related blockchain technology and cryptography. This library can be used to do anything that is allowed according to the BitShares blockchain protocol. -.. autoclass:: bitshares.bitshares.BitShares +.. autoclass:: steem.steem.BitShares :members: diff --git a/docs/block.rst b/docs/block.rst index 6230d396..1a4105a2 100644 --- a/docs/block.rst +++ b/docs/block.rst @@ -5,9 +5,9 @@ Easily read data in a Block .. code-block:: python - from bitshares.block import Block + from steem.block import Block from pprint import pprint pprint(Block(1)) -.. autoclass:: bitshares.block.Block +.. autoclass:: steem.block.Block :members: diff --git a/docs/blockchain.rst b/docs/blockchain.rst index 896a8587..ec67d4cb 100644 --- a/docs/blockchain.rst +++ b/docs/blockchain.rst @@ -5,7 +5,7 @@ Read blockchain related data- .. code-block:: python - from bitshares.blockchain import Blockchain + from steem.blockchain import Blockchain chain = Blockchain() Read current block and blockchain info @@ -29,5 +29,5 @@ Monitor for new blocks .. for operations in chain.ops(): print(operations) -.. autoclass:: bitshares.blockchain.Blockchain +.. autoclass:: steem.blockchain.Blockchain :members: diff --git a/docs/configuration.rst b/docs/configuration.rst index 13db5458..c4e07dfd 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -2,7 +2,7 @@ Configuration ************* -The pybitshares library comes with its own local configuration database +The pysteem library comes with its own local configuration database that stores information like * API node URL @@ -15,20 +15,20 @@ You can access those variables like a regular dictionary by using .. code-block:: python - from bitshares import BitShares - bitshares = BitShares() - print(bitshares.config.items()) + from steem import BitShares + steem = BitShares() + print(steem.config.items()) Keys can be added and changed like they are for regular dictionaries. -If you don't want to load the :class:`bitshares.BitShares` class, you +If you don't want to load the :class:`steem.BitShares` class, you can load the configuration directly by using: .. code-block:: python - from bitshares.storage import configStorage as config + from steem.storage import configStorage as config API --- -.. autoclass:: bitshares.storage.Configuration +.. autoclass:: steem.storage.Configuration :members: diff --git a/docs/contribute.rst b/docs/contribute.rst index 0eaa10b4..a133dbfe 100644 --- a/docs/contribute.rst +++ b/docs/contribute.rst @@ -1,4 +1,4 @@ -Contributing to python-bitshares +Contributing to python-steem ================================ We welcome your contributions to our project. @@ -6,9 +6,9 @@ We welcome your contributions to our project. Repository ---------- -The *main* repository of python-bitshares is currently located at: +The *main* repository of python-steem is currently located at: - https://github.com/xeroc/python-bitshares + https://github.com/xeroc/python-steem Flow ---- diff --git a/docs/dex.rst b/docs/dex.rst index 5a2c83bc..22d3a438 100644 --- a/docs/dex.rst +++ b/docs/dex.rst @@ -1,5 +1,5 @@ Dex ~~~ -.. autoclass:: bitshares.dex.Dex +.. autoclass:: steem.dex.Dex :members: diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 634bd564..e4bfb295 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -1,8 +1,8 @@ Exceptions ~~~~~~~~~~ -.. autoclass:: bitshares.exceptions +.. autoclass:: steem.exceptions :members: -.. autoclass:: bitsharesapi.exceptions +.. autoclass:: steemapi.exceptions :members: diff --git a/docs/index.rst b/docs/index.rst index a25518c8..26ee7ebd 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,4 +1,4 @@ -.. python-bitshares documentation master file, created by +.. python-steem documentation master file, created by sphinx-quickstart on Fri Jun 5 14:06:38 2015. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. @@ -9,7 +9,7 @@ http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html http://rest-sphinx-memo.readthedocs.org/en/latest/ReST.html -Welcome to pybitshares's documentation! +Welcome to pysteem's documentation! =============================================== BitShares is a **blockchain-based autonomous company** (i.e. a DAC) that @@ -24,7 +24,7 @@ assets as well as customized on-chain smart contracts. About this Library ------------------ -The purpose of *pybitshares* is to simplify development of products and +The purpose of *pysteem* is to simplify development of products and services that use the BitShares blockchain. It comes with * it's own (bip32-encrypted) wallet @@ -52,26 +52,26 @@ Quickstart .. code-block:: python - from bitshares import BitShares - bitshares = BitShares() - bitshares.wallet.unlock("wallet-passphrase") - bitshares.transfer("<to>", "<amount>", "<asset>", "[<memo>]", account="<from>") + from steem import BitShares + steem = BitShares() + steem.wallet.unlock("wallet-passphrase") + steem.transfer("<to>", "<amount>", "<asset>", "[<memo>]", account="<from>") .. code-block:: python - from bitshares.blockchain import Blockchain + from steem.blockchain import Blockchain blockchain = Blockchain() for op in Blockchain.ops(): print(op) .. code-block:: python - from bitshares.block import Block + from steem.block import Block print(Block(1)) .. code-block:: python - from bitshares.account import Account + from steem.account import Account account = Account("init0") print(account.balances) print(account.openorders) @@ -80,17 +80,17 @@ Quickstart .. code-block:: python - from bitshares.market import Market + from steem.market import Market market = Market("USD:BTS") print(market.ticker()) - market.bitshares.wallet.unlock("wallet-passphrase") + market.steem.wallet.unlock("wallet-passphrase") print(market.sell(300, 100) # sell 100 USD for 300 BTS/USD .. code-block:: python - from bitshares.dex import Dex + from steem.dex import Dex dex = Dex() - dex.bitshares.wallet.unlock("wallet-passphrase") + dex.steem.wallet.unlock("wallet-passphrase") dex.adjust_collateral_ratio("SILVER", 3.5) @@ -112,7 +112,7 @@ Python-BitShares Libraries .. toctree:: :maxdepth: 1 - bitshares + steem instances account amount diff --git a/docs/installation.rst b/docs/installation.rst index 25777540..06133241 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -10,14 +10,14 @@ Install with `pip`: :: $ sudo apt-get install libffi-dev libssl-dev python-dev - $ pip3 install bitshares + $ pip3 install steem Manual installation: :: - $ git clone https://github.com/xeroc/python-bitshares/ - $ cd python-bitshares + $ git clone https://github.com/xeroc/python-steem/ + $ cd python-steem $ python3 setup.py install --user Upgrade diff --git a/docs/instances.rst b/docs/instances.rst index ccc324a3..c4b3981b 100644 --- a/docs/instances.rst +++ b/docs/instances.rst @@ -1,16 +1,16 @@ Instances ~~~~~~~~~ -Default instance to be used when no ``bitshares_instance`` is given to +Default instance to be used when no ``steem_instance`` is given to the Objects! .. code-block:: python - from bitshares.instance import shared_bitshares_instance + from steem.instance import shared_steem_instance account = Account("xeroc") # is equivalent with - account = Account("xeroc", bitshares_instance=shared_bitshares_instance()) + account = Account("xeroc", steem_instance=shared_steem_instance()) -.. automethod:: bitshares.instance.shared_bitshares_instance -.. automethod:: bitshares.instance.set_shared_bitshares_instance +.. automethod:: steem.instance.shared_steem_instance +.. automethod:: steem.instance.set_shared_steem_instance diff --git a/docs/market.rst b/docs/market.rst index b9d2ed8b..32b96d8d 100644 --- a/docs/market.rst +++ b/docs/market.rst @@ -1,5 +1,5 @@ Market ~~~~~~~ -.. autoclass:: bitshares.market.Market +.. autoclass:: steem.market.Market :members: diff --git a/docs/memo.rst b/docs/memo.rst index c4992887..a72b9f7d 100644 --- a/docs/memo.rst +++ b/docs/memo.rst @@ -53,13 +53,13 @@ Example Encrypting a memo ~~~~~~~~~~~~~~~~~ -The high level memo class makes use of the pybitshares wallet to obtain keys +The high level memo class makes use of the pysteem wallet to obtain keys for the corresponding accounts. .. code-block:: python - from bitshares.memo import Memo - from bitshares.account import Account + from steem.memo import Memo + from steem.account import Account memoObj = Memo( from_account=Account(from_account), @@ -73,8 +73,8 @@ Decoding of a received memo .. code-block:: python from getpass import getpass - from bitshares.block import Block - from bitshares.memo import Memo + from steem.block import Block + from steem.memo import Memo # Obtain a transfer from the blockchain block = Block(23755086) # block @@ -96,5 +96,5 @@ Decoding of a received memo API ### -.. automodule:: bitsharesbase.memo +.. automodule:: steembase.memo :members: diff --git a/docs/notify.rst b/docs/notify.rst index 746c5fd1..63e8d67d 100644 --- a/docs/notify.rst +++ b/docs/notify.rst @@ -4,5 +4,5 @@ Notify This modules allows yout to be notified of events taking place on the blockchain. -.. autoclass:: bitshares.notify.Notify +.. autoclass:: steem.notify.Notify :members: diff --git a/docs/price.rst b/docs/price.rst index e0d9a7a7..f328c79f 100644 --- a/docs/price.rst +++ b/docs/price.rst @@ -1,5 +1,5 @@ Price ~~~~~~ -.. autoclass:: bitshares.price.Price +.. autoclass:: steem.price.Price :members: diff --git a/docs/proposal.rst b/docs/proposal.rst index e1574ab7..f0c14089 100644 --- a/docs/proposal.rst +++ b/docs/proposal.rst @@ -1,8 +1,8 @@ Proposal ~~~~~~~~ -.. autoclass:: bitshares.proposal.Proposal +.. autoclass:: steem.proposal.Proposal :members: -.. autoclass:: bitshares.proposal.Proposals +.. autoclass:: steem.proposal.Proposals :members: diff --git a/docs/storage.rst b/docs/storage.rst index 3fc9abc6..1e7a4df4 100644 --- a/docs/storage.rst +++ b/docs/storage.rst @@ -7,11 +7,11 @@ These classes are very low level and are not well documented. API --- -.. autoclass:: bitshares.storage.DataDir +.. autoclass:: steem.storage.DataDir :members: -.. autoclass:: bitshares.storage.Key +.. autoclass:: steem.storage.Key :members: -.. autoclass:: bitshares.storage.MasterPassword +.. autoclass:: steem.storage.MasterPassword :members: diff --git a/docs/support.rst b/docs/support.rst index f63b4fb8..5377a837 100644 --- a/docs/support.rst +++ b/docs/support.rst @@ -3,8 +3,7 @@ Support and Questions ********************* We have currently not setup a distinct channel for development around -pybitshares. However, many of the contributors are frequently reading +pysteemi. However, many of the contributors are frequently reading through these channels: -* https://bitsharestalk.org -* https://t.me/BitSharesDEX + diff --git a/docs/transactionbuilder.rst b/docs/transactionbuilder.rst index 8f2eea10..55fd4b96 100644 --- a/docs/transactionbuilder.rst +++ b/docs/transactionbuilder.rst @@ -5,8 +5,8 @@ To build your own transactions and sign them .. code-block:: python - from bitshares.transactionbuilder import TransactionBuilder - from bitsharesbase.operations import Transfer + from steem.transactionbuilder import TransactionBuilder + from steembase.operations import Transfer tx = TransactionBuilder() tx.appendOps(Transfer(**{ "fee": {"amount": 0, "asset_id": "1.3.0"}, # will be filled in automatically @@ -18,5 +18,5 @@ To build your own transactions and sign them tx.sign() tx.broadcast() -.. autoclass:: bitshares.transactionbuilder.TransactionBuilder +.. autoclass:: steem.transactionbuilder.TransactionBuilder :members: diff --git a/docs/transactions.rst b/docs/transactions.rst index ecb49767..63fe9236 100644 --- a/docs/transactions.rst +++ b/docs/transactions.rst @@ -16,7 +16,7 @@ We load the class for manual transaction construction via: .. code-block:: python - from bitsharesbase import transactions, operations + from steembase import transactions, operations Construction ############ diff --git a/docs/tutorials.rst b/docs/tutorials.rst index d9316040..2827f985 100644 --- a/docs/tutorials.rst +++ b/docs/tutorials.rst @@ -14,10 +14,10 @@ executed in the same order as they are added to the transaction. .. code-block:: python from pprint import pprint - from bitshares import BitShares + from steem import BitShares testnet = BitShares( - "wss://node.testnet.bitshares.eu", + "wss://node.testnet.steem.eu", nobroadcast=True, bundle=True, ) @@ -37,16 +37,16 @@ Proposing a Transaction In BitShares, you can propose a transactions to any account. This is used to facilitate on-chain multisig transactions. With -python-bitshares, you can do this simply by using the ``proposer`` +python-steem, you can do this simply by using the ``proposer`` attribute: .. code-block:: python from pprint import pprint - from bitshares import BitShares + from steem import BitShares testnet = BitShares( - "wss://node.testnet.bitshares.eu", + "wss://node.testnet.steem.eu", proposer="xeroc" ) testnet.wallet.unlock("supersecret") @@ -57,23 +57,23 @@ Simple Sell Script .. code-block:: python - from bitshares import BitShares - from bitshares.market import Market - from bitshares.price import Price - from bitshares.amount import Amount + from steem import BitShares + from steem.market import Market + from steem.price import Price + from steem.amount import Amount # # Instanciate BitShares (pick network via API node) # - bitshares = BitShares( - "wss://node.testnet.bitshares.eu", + steem = BitShares( + "wss://node.testnet.steem.eu", nobroadcast=True # <<--- set this to False when you want to fire! ) # # Unlock the Wallet # - bitshares.wallet.unlock("<supersecret>") + steem.wallet.unlock("<supersecret>") # # This defines the market we are looking at. @@ -82,7 +82,7 @@ Simple Sell Script # market = Market( "GOLD:USD", - bitshares_instance=bitshares + steem_instance=steem ) # @@ -100,10 +100,10 @@ Sell at a timely rate .. code-block:: python import threading - from bitshares import BitShares - from bitshares.market import Market - from bitshares.price import Price - from bitshares.amount import Amount + from steem import BitShares + from steem.market import Market + from steem.price import Price + from steem.amount import Amount def sell(): @@ -121,15 +121,15 @@ Sell at a timely rate # # Instanciate BitShares (pick network via API node) # - bitshares = BitShares( - "wss://node.testnet.bitshares.eu", + steem = BitShares( + "wss://node.testnet.steem.eu", nobroadcast=True # <<--- set this to False when you want to fire! ) # # Unlock the Wallet # - bitshares.wallet.unlock("<supersecret>") + steem.wallet.unlock("<supersecret>") # # This defines the market we are looking at. @@ -138,7 +138,7 @@ Sell at a timely rate # market = Market( "GOLD:USD", - bitshares_instance=bitshares + steem_instance=steem ) sell() diff --git a/docs/utils.rst b/docs/utils.rst index cf9157cd..0a6bb64c 100644 --- a/docs/utils.rst +++ b/docs/utils.rst @@ -1,5 +1,5 @@ Utilities ~~~~~~~~~~~~~~~~~~~ -.. autoclass:: bitshares.utils +.. autoclass:: steem.utils :members: diff --git a/docs/vesting.rst b/docs/vesting.rst index b2052931..780ac286 100644 --- a/docs/vesting.rst +++ b/docs/vesting.rst @@ -1,5 +1,5 @@ Vesting ~~~~~~~ -.. autoclass:: bitshares.vesting.Vesting +.. autoclass:: steem.vesting.Vesting :members: diff --git a/docs/wallet.rst b/docs/wallet.rst index beeef88d..6fdf71c2 100644 --- a/docs/wallet.rst +++ b/docs/wallet.rst @@ -8,9 +8,9 @@ A new wallet can be created by using: .. code-block:: python - from bitshares import BitShares - bitshares = BitShares() - bitshares.wallet.create("supersecret-passphrase") + from steem import BitShares + steem = BitShares() + steem.wallet.create("supersecret-passphrase") This will raise an exception if you already have a wallet installed. @@ -21,23 +21,23 @@ The wallet can be unlocked for signing using .. code-block:: python - from bitshares import BitShares - bitshares = BitShares() - bitshares.wallet.unlock("supersecret-passphrase") + from steem import BitShares + steem = BitShares() + steem.wallet.unlock("supersecret-passphrase") Adding a Private Key -------------------- A private key can be added by using the -:func:`bitshares.wallet.Wallet.addPrivateKey` method that is available +:func:`steem.wallet.Wallet.addPrivateKey` method that is available **after** unlocking the wallet with the correct passphrase: .. code-block:: python - from bitshares import BitShares - bitshares = BitShares() - bitshares.wallet.unlock("supersecret-passphrase") - bitshares.wallet.addPrivateKey("5xxxxxxxxxxxxxxxxxxxx") + from steem import BitShares + steem = BitShares() + steem.wallet.unlock("supersecret-passphrase") + steem.wallet.addPrivateKey("5xxxxxxxxxxxxxxxxxxxx") .. note:: The private key has to be either in hexadecimal or in wallet import format (wif) (starting with a ``5``). @@ -45,5 +45,5 @@ A private key can be added by using the API --- -.. autoclass:: bitshares.wallet.Wallet +.. autoclass:: steem.wallet.Wallet :members: diff --git a/docs/websocket.rst b/docs/websocket.rst index 3d40296a..da23a50a 100644 --- a/docs/websocket.rst +++ b/docs/websocket.rst @@ -8,10 +8,10 @@ node. .. code-block:: python from pprint import pprint - from bitsharesapi.websocket import BitSharesWebsocket + from steemapi.websocket import BitSharesWebsocket ws = BitSharesWebsocket( - "wss://node.testnet.bitshares.eu", + "wss://node.testnet.steem.eu", markets=[["1.3.0", "1.3.172"]], accounts=["xeroc"], objects=["2.0.x", "2.1.x"], @@ -23,7 +23,7 @@ node. Defintion ========= -.. autoclass:: bitsharesapi.websocket.BitSharesWebsocket +.. autoclass:: steemapi.websocket.BitSharesWebsocket :members: :undoc-members: :private-members: diff --git a/docs/websocketrpc.rst b/docs/websocketrpc.rst index 9cba4f2a..daad50b4 100644 --- a/docs/websocketrpc.rst +++ b/docs/websocketrpc.rst @@ -7,5 +7,5 @@ websockets. Defintion ========= -.. autoclass:: bitsharesapi.bitsharesnoderpc.BitSharesNodeRPC +.. autoclass:: steemapi.steemnoderpc.BitSharesNodeRPC :members: rpcexec, __getattr__ diff --git a/docs/witness.rst b/docs/witness.rst index cad8bf4b..7459ff03 100644 --- a/docs/witness.rst +++ b/docs/witness.rst @@ -5,11 +5,11 @@ Read data about a witness .. code-block:: python - from bitshares.witness import Witness + from steem.witness import Witness Witness("chainsquad.com") -.. autoclass:: bitshares.witness.Witness +.. autoclass:: steem.witness.Witness :members: -.. autoclass:: bitshares.witness.Witnesses +.. autoclass:: steem.witness.Witnesses :members: diff --git a/docs/worker.rst b/docs/worker.rst index 8ccc3116..e0c24a9a 100644 --- a/docs/worker.rst +++ b/docs/worker.rst @@ -5,11 +5,11 @@ Read data about a worker .. code-block:: python - from bitshares.witness import Witness + from steem.witness import Witness Witness("refund400") -.. autoclass:: bitshares.worker.Worker +.. autoclass:: steem.worker.Worker :members: -.. autoclass:: bitshares.worker.Workers +.. autoclass:: steem.worker.Workers :members: diff --git a/tests/test_account.py b/tests/test_account.py index 89ef7478..3899d10e 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -28,15 +28,14 @@ class Testcases(unittest.TestCase): set_shared_steem_instance(self.bts) def test_account(self): - Account("witness-account") - Account("1.2.3") + Account("test") + Account("DoesNotExistsXXX") # asset = Asset("1.3.0") # symbol = asset["symbol"] - account = Account("witness-account", full=True) - self.assertEqual(account.name, "witness-account") + account = Account("test", full=True) + self.assertEqual(account.name, "test") self.assertEqual(account["name"], account.name) - self.assertEqual(account["id"], "1.2.1") - self.assertIsInstance(account.balance("1.3.0"), Amount) + self.assertIsInstance(account.balance("SBD"), Amount) # self.assertIsInstance(account.balance({"symbol": symbol}), Amount) self.assertIsInstance(account.balances, list) for h in account.history(limit=1): @@ -52,20 +51,4 @@ class Testcases(unittest.TestCase): self.assertEqual(str(account), "<Account 1.2.1>") self.assertIsInstance(Account(account), Account) - def test_account_upgrade(self): - account = Account("witness-account") - tx = account.upgrade() - ops = tx["operations"] - op = ops[0][1] - self.assertEqual(len(ops), 1) - self.assertEqual( - getOperationNameForId(ops[0][0]), - "account_upgrade" - ) - self.assertTrue( - op["upgrade_to_lifetime_member"] - ) - self.assertEqual( - op["account_to_upgrade"], - "1.2.1", - ) + diff --git a/tests/test_steem.py b/tests/test_steem.py index f499db8c..c8c3462e 100644 --- a/tests/test_steem.py +++ b/tests/test_steem.py @@ -26,13 +26,13 @@ class Testcases(unittest.TestCase): # from getpass import getpass # self.bts.wallet.unlock(getpass()) set_shared_steem_instance(self.bts) - self.bts.set_default_account("init0") + self.bts.set_default_account("test") def test_connect(self): self.bts.connect() def test_set_default_account(self): - self.bts.set_default_account("init0") + self.bts.set_default_account("test") def test_info(self): info = self.bts.info() -- GitLab