forked from DGNum/uptime-kuma-api
test: ignore ResourceWarning
This commit is contained in:
parent
06fa29cd41
commit
d13621cd9e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue