From d13621cd9eeefbef2807c2bd24e78f6fa5919f1a Mon Sep 17 00:00:00 2001 From: lucasheld Date: Tue, 4 Oct 2022 19:08:59 +0200 Subject: [PATCH] test: ignore ResourceWarning --- tests/uptime_kuma_test_case.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/uptime_kuma_test_case.py b/tests/uptime_kuma_test_case.py index 74102e2..57f99db 100644 --- a/tests/uptime_kuma_test_case.py +++ b/tests/uptime_kuma_test_case.py @@ -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