test_write_service.py 353 字节
Newer Older
S
superjom 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import summary
import numpy as np
import unittest
import time


class StorageTester(unittest.TestCase):
    def test_read_storage(self):
        summary.set_readable_storage("./tmp")
        time.sleep(1)
        scalar = summary.read_scalar('tag01')
        time.sleep(5)
        summary.stop_service()


if __name__ == '__main__':
    unittest.main()