Onionr/tests/default-plugin-tests/wot/test_block_processing.py

26 lines
552 B
Python
Raw Normal View History

2022-08-31 05:30:28 +00:00
import os, uuid
from random import randint
from time import sleep
import secrets
import onionrblocks
TEST_DIR = 'testdata/%s-%s' % (str(uuid.uuid4())[:6], os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)
os.environ["ONIONR_HOME"] = TEST_DIR
import unittest
import sys
sys.path.append(".")
sys.path.append('static-data/default-plugins/wot/')
sys.path.append("src/")
from wot import identity
from wot import process_block
class BlockProcessingTest(unittest.TestCase):
def test_block_processing_trust(self):
unittest.main()