test: ignore ResourceWarning

This commit is contained in:
lucasheld 2022-10-04 19:08:59 +02:00
parent 06fa29cd41
commit d13621cd9e

View file

@ -1,4 +1,5 @@
import unittest
import warnings
from packaging.version import parse as parse_version
from uptime_kuma_api import UptimeKumaApi, MonitorType, DockerType
@ -35,6 +36,8 @@ class UptimeKumaTestCase(unittest.TestCase):
password = "secret123"
def setUp(self):
warnings.simplefilter("ignore", ResourceWarning)
self.api = UptimeKumaApi(self.url)
global token