File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
# for swanlab
2
- swankit == 0.1.0b5
2
+ swankit == 0.1.0b7
3
3
swanboard == 0.1.2b3
4
4
5
5
# data process
Original file line number Diff line number Diff line change 3
3
from datetime import datetime
4
4
from ..utils import FONT
5
5
from swanlab .utils import create_time
6
- from swanlab .utils .judgment import in_jupyter
7
- from abc import ABC , abstractmethod
8
6
9
7
10
8
# 检查当前日期是否和控制台日志文件名一致
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ def test_write_logging_to_file(self):
102
102
assert len (files ) == 1
103
103
with open (os .path .join (console_dir , files [0 ]), "r" ) as f :
104
104
content = f .readlines ()
105
- assert content [- 2 ] == swanlog . prefix + " " + a + "\n "
106
- assert content [- 1 ] == swanlog . prefix + " " + b + "\n "
105
+ assert content [- 2 ] == "swanlab:" + " " + a + "\n "
106
+ assert content [- 1 ] == "swanlab:" + " " + b + "\n "
107
107
108
108
def test_can_write_logging (self ):
109
109
swanlog .install (console_dir )
@@ -117,5 +117,5 @@ def test_can_write_logging(self):
117
117
assert len (files ) == 1
118
118
with open (os .path .join (console_dir , files [0 ]), "r" ) as f :
119
119
content = f .readlines ()
120
- assert content [- 2 ] != swanlog . prefix + " " + a + "\n "
121
- assert content [- 1 ] == swanlog . prefix + " " + b + "\n "
120
+ assert content [- 2 ] != "swanlab:" + " " + a + "\n "
121
+ assert content [- 1 ] == "swanlab:" + " " + b + "\n "
You can’t perform that action at this time.
0 commit comments