2022-08-05 14:35:17 +02:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
from uptime_kuma_test_case import UptimeKumaTestCase
|
|
|
|
|
|
|
|
|
|
|
|
class TestUptime(UptimeKumaTestCase):
|
2022-08-26 14:03:17 +02:00
|
|
|
def test_uptime_without_monitor(self):
|
|
|
|
self.api.uptime()
|
|
|
|
|
|
|
|
def test_uptime_with_monitor(self):
|
2022-08-05 14:35:17 +02:00
|
|
|
self.add_monitor()
|
|
|
|
self.api.uptime()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|