NuWeather: use PluginTestCase.setUp() in tests

PluginTestCase.setUp() checks some hardcoded class names, so using super() here causes the tests to break.
This commit is contained in:
James Lu 2020-08-14 16:37:17 -07:00
parent 586d16712f
commit f548d2dd54

View File

@ -1,5 +1,5 @@
### ###
# Copyright (c) 2019, James Lu <james@overdrivenetworks.com> # Copyright (c) 2019-2020, James Lu <james@overdrivenetworks.com>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -32,7 +32,6 @@ import unittest
from supybot.test import * from supybot.test import *
from supybot import log from supybot import log
from . import config
NO_NETWORK_REASON = "Network-based tests are disabled by --no-network" NO_NETWORK_REASON = "Network-based tests are disabled by --no-network"
@ -44,7 +43,7 @@ class NuWeatherDarkSkyTestCase(PluginTestCase):
# API limits :( # API limits :(
def setUp(self): def setUp(self):
super().setUp() PluginTestCase.setUp(self)
self.myVerbose = verbosity.MESSAGES # Enable verbose logging of messages self.myVerbose = verbosity.MESSAGES # Enable verbose logging of messages
if not network: if not network: