Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit99e73be

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added timestamps in logs
1 parenteccf532 commit99e73be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎test/test_modules.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
fromunittestimportTestCase
21
importjson
2+
fromdatetimeimportdatetime
3+
fromunittestimportTestCase
34

45
frometherscan.etherscanimportEtherscan
56

@@ -32,9 +33,10 @@ def test_methods(self):
3233
# Create log files (will update existing ones)
3334
fname=f"logs/{fun}.json"
3435
log= {
35-
"name":fun,
36+
"method":fun,
3637
"module":v["module"],
3738
"kwargs":v["kwargs"],
39+
"timestamp":datetime.now().strftime("%Y-%m-%d-%H:%M:%S"),
3840
"res":res,
3941
}
4042
dump(log,fname)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp