Skip to content
Snippets Groups Projects
Commit a4b31d2c authored by matograine's avatar matograine Committed by Moul
Browse files

[mod][tests] #89 add a mocked block for currency gtest

parent 07480106
No related branches found
No related tags found
1 merge request!170#89: Implement revocation command
......@@ -27,6 +27,14 @@ mocked_block = {
"hash": "0000010D30B1284D34123E036B7BE0A449AE9F2B928A77D7D20E3BDEAC7EE14C",
}
mocked_block_gtest = {
"number": 48000,
"time": 1592243760,
"unitbase": 0,
"currency": "g1-test",
"hash": "0000010D30B1284D34123E036B7BE0A449AE9F2B928A77D7D20E3BDEAC7EE14C",
}
fake_block_id = BlockID(
48000, "0000010D30B1284D34123E036B7BE0A449AE9F2B928A77D7D20E3BDEAC7EE14C"
)
......@@ -46,3 +54,7 @@ def patched_block(self, number):
## mock head_block()
def patched_head_block(self):
return mocked_block
def patched_head_block_gtest(self):
return mocked_block_gtest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment