mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-05-19 06:08:52 +01:00
Addressing codacy issues
This commit is contained in:
+11
-10
@@ -1,18 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
import unittest
|
||||
|
||||
from cachet_url_monitor.latency_unit import convert_to_unit
|
||||
|
||||
|
||||
class ConfigurationTest(unittest.TestCase):
|
||||
def test_convert_to_unit_ms(self):
|
||||
assert convert_to_unit("ms", 1) == 1000
|
||||
def test_convert_to_unit_ms():
|
||||
assert convert_to_unit("ms", 1) == 1000
|
||||
|
||||
def test_convert_to_unit_s(self):
|
||||
assert convert_to_unit("s", 20) == 20
|
||||
|
||||
def test_convert_to_unit_m(self):
|
||||
assert convert_to_unit("m", 3) == float(3) / 60
|
||||
def test_convert_to_unit_s():
|
||||
assert convert_to_unit("s", 20) == 20
|
||||
|
||||
def test_convert_to_unit_h(self):
|
||||
assert convert_to_unit("h", 7200) == 2
|
||||
|
||||
def test_convert_to_unit_m():
|
||||
assert convert_to_unit("m", 3) == float(3) / 60
|
||||
|
||||
|
||||
def test_convert_to_unit_h():
|
||||
assert convert_to_unit("h", 7200) == 2
|
||||
|
||||
Reference in New Issue
Block a user