mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Merge f31c550bb49370a517d3344e03b8c64406590ad6 into 67598872ef07b8d580d6938e6d4002f2c1bd4b5d
This commit is contained in:
commit
c95794b6be
2
test/__init__.py
Normal file
2
test/__init__.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# coding=utf-8
|
||||||
|
|
37
test/test_basic.py
Normal file
37
test/test_basic.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
"""
|
||||||
|
A Basic Test Module
|
||||||
|
"""
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
class TestBase(unittest.TestCase):
|
||||||
|
"""
|
||||||
|
Test basic functionality
|
||||||
|
"""
|
||||||
|
DEBUG = True # set this flag to skip tests while debugging the unit
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
"""
|
||||||
|
Set up variables at TestCase-level
|
||||||
|
"""
|
||||||
|
|
||||||
|
cls.KEY1 = 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
|
||||||
|
cls.KEY2 = 'QmR9MzChjp1MdFWik7NjEjqKQMzVmBkdK3dz14A6B5Cupm'
|
||||||
|
cls.NODE = {'Data': b'Hello World'}
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
"""
|
||||||
|
Set up variables at test-level
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
@unittest.skipIf(DEBUG, "debug")
|
||||||
|
def test_one(self):
|
||||||
|
"""
|
||||||
|
Minimal functional test
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
x
Reference in New Issue
Block a user