mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-11 10:28:45 -04:00
Removed references to old custom config
Also updated unittests to pass.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from unittest import mock
|
||||
|
||||
from oslo_config import cfg
|
||||
import pytz
|
||||
|
||||
from aprsd.plugins import time as time_plugin
|
||||
@@ -8,6 +9,9 @@ from aprsd.utils import fuzzy
|
||||
from .. import fake, test_plugin
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
||||
class TestTimePlugins(test_plugin.TestPlugin):
|
||||
|
||||
@mock.patch("aprsd.plugins.time.TimePlugin._get_local_tz")
|
||||
@@ -25,7 +29,8 @@ class TestTimePlugins(test_plugin.TestPlugin):
|
||||
h = int(local_t.strftime("%H"))
|
||||
m = int(local_t.strftime("%M"))
|
||||
fake_time.tm_sec = 13
|
||||
time = time_plugin.TimePlugin(self.config)
|
||||
CONF.callsign = fake.FAKE_TO_CALLSIGN
|
||||
time = time_plugin.TimePlugin()
|
||||
|
||||
packet = fake.fake_packet(
|
||||
message="location",
|
||||
|
||||
Reference in New Issue
Block a user