mirror of
https://gitlab.com/2-chainz/2chainz.git
synced 2025-06-16 01:46:39 +00:00
fix tests
This commit is contained in:
parent
130a9354cb
commit
49d023b229
@ -28,8 +28,8 @@ class TestApi:
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"mocked_time,start_time,expected",
|
"mocked_time,start_time,expected",
|
||||||
[
|
[
|
||||||
(100, 50, 50), # 100 - 50 = 50 seconds uptime
|
(100, 50, "50"), # 100 - 50 = 50 seconds uptime
|
||||||
(200, 100, 100), # 200 - 100 = 100 seconds uptime
|
(200, 100, "100"), # 200 - 100 = 100 seconds uptime
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_api_uptime_calculation(self, mocked_time, start_time, expected):
|
def test_api_uptime_calculation(self, mocked_time, start_time, expected):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user