uptime-kuma-api/tests/test_uptime.py

17 lines
322 B
Python
Raw Permalink Normal View History

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()