File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def test_case03():
40
40
41
41
@with_setup (my_setup )
42
42
def test_case04 ():
43
- if float ( version ) < 7.0 :
43
+ if version < " 7.0" :
44
44
args , msg = parse_cmd_args (g )
45
45
result = vars (args )
46
46
assert isinstance (result ['port' ], int )
@@ -52,7 +52,7 @@ def test_case04():
52
52
53
53
@with_setup (my_setup )
54
54
def test_case05 ():
55
- if float ( version ) < 7.0 :
55
+ if version < " 7.0" :
56
56
args , msg = parse_cmd_args (g )
57
57
result = vars (args )
58
58
assert result ['port' ] == 4242 and result ['serverPort' ] == 9084
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def test_case09():
67
67
def test_case10 ():
68
68
cm = ConfigManager ()
69
69
result = cm .defaults
70
- if float ( version ) < 7.0 :
70
+ if version < " 7.0" :
71
71
assert int (result ['port' ]) == 4242 and int (result ['serverPort' ]) == 9084
72
72
else :
73
73
assert int (result ['port' ]) == 4242 and int (result ['serverPort' ]) == 9980
Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ def test_case03():
19
19
20
20
def test_case04 ():
21
21
result = os .system ('python ./source/zimonGrafanaIntf.py -P 9084' )
22
- if float ( version ) >= 7.0 :
22
+ if version >= " 7.0" :
23
23
assert result > 0
You can’t perform that action at this time.
0 commit comments