Skip to content

Commit 62c26d9

Browse files
authored
update toolkit (#630)
1 parent e48391b commit 62c26d9

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# for swanlab
2-
swankit==0.1.0b5
2+
swankit==0.1.0b7
33
swanboard==0.1.2b3
44

55
# data process

swanlab/log/console.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from datetime import datetime
44
from ..utils import FONT
55
from swanlab.utils import create_time
6-
from swanlab.utils.judgment import in_jupyter
7-
from abc import ABC, abstractmethod
86

97

108
# 检查当前日期是否和控制台日志文件名一致

test/unit/log/pytest_log.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def test_write_logging_to_file(self):
102102
assert len(files) == 1
103103
with open(os.path.join(console_dir, files[0]), "r") as f:
104104
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"
107107

108108
def test_can_write_logging(self):
109109
swanlog.install(console_dir)
@@ -117,5 +117,5 @@ def test_can_write_logging(self):
117117
assert len(files) == 1
118118
with open(os.path.join(console_dir, files[0]), "r") as f:
119119
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"

0 commit comments

Comments
 (0)