diff --git a/visualdl/python/test_summary.py b/visualdl/python/test_summary.py index 7929770c2c34fb303a8f0835aa56c7e42f1676e7..460e05a35603b0a3a996b820aecf9de72441928d 100644 --- a/visualdl/python/test_summary.py +++ b/visualdl/python/test_summary.py @@ -7,15 +7,16 @@ import time class StorageTest(unittest.TestCase): def setUp(self): self.dir = "./tmp/storage_test" - self.writer = storage.StorageWriter(self.dir, sync_cycle=1).as_mode("train") - def test_write(self): + def test_read(self): + print 'test write' + self.writer = storage.StorageWriter(self.dir, sync_cycle=1).as_mode("train") scalar = self.writer.scalar("model/scalar/min") - scalar.set_caption("model/scalar/min") + # scalar.set_caption("model/scalar/min") for i in range(10): scalar.add_record(i, 1.0) - def test_read(self): + print 'test read' self.reader = storage.StorageReader("train", self.dir) scalar = self.reader.scalar("model/scalar/min") self.assertEqual(scalar.caption(), "train")