Commit 60891f49826dcc73b350262096043cfbd689f21d
1 parent
66d04db8
更新进门称重的方法
Showing
2 changed files
with
3 additions
and
4 deletions
commons/Logging.py
1 | #!/usr/bin/python | 1 | #!/usr/bin/python |
2 | # -*- coding: UTF-8 -*- | 2 | # -*- coding: UTF-8 -*- |
3 | import logging,os | 3 | import logging,os |
4 | -# from mylog import mylogger,logg | 4 | +from mylog import mylogger,logg |
5 | 5 | ||
6 | 6 | ||
7 | class Logger(): | 7 | class Logger(): |
@@ -9,8 +9,8 @@ class Logger(): | @@ -9,8 +9,8 @@ class Logger(): | ||
9 | def __init__(self, path=__name__,clevel = logging.ERROR,Flevel = logging.DEBUG,test = 'w'): | 9 | def __init__(self, path=__name__,clevel = logging.ERROR,Flevel = logging.DEBUG,test = 'w'): |
10 | current_path=os.path.dirname(os.path.dirname(__file__)) | 10 | current_path=os.path.dirname(os.path.dirname(__file__)) |
11 | path=current_path+"/report"+"/test.log" | 11 | path=current_path+"/report"+"/test.log" |
12 | - # setattr(mylogger, "logpath", path) | ||
13 | - # logg.setting() | 12 | + setattr(mylogger, "logpath", path) |
13 | + logg.setting() | ||
14 | 14 | ||
15 | self.logger = logging.getLogger(path) | 15 | self.logger = logging.getLogger(path) |
16 | 16 |
testcase/weightBizBill/test_weighingServiceSave.py
@@ -15,7 +15,6 @@ li=listCarType(sy1) | @@ -15,7 +15,6 @@ li=listCarType(sy1) | ||
15 | class test_weighingServiceSave(unittest.TestCase): | 15 | class test_weighingServiceSave(unittest.TestCase): |
16 | "称重服务" | 16 | "称重服务" |
17 | 17 | ||
18 | - | ||
19 | @classmethod | 18 | @classmethod |
20 | def setUpClass(cls): | 19 | def setUpClass(cls): |
21 | pass | 20 | pass |