settings: Remove SettingsProxy at mopidy.settings
This commit is contained in:
parent
2276130758
commit
e92a7628f2
@ -24,8 +24,3 @@ warnings.filterwarnings('ignore', 'could not open display')
|
|||||||
|
|
||||||
|
|
||||||
__version__ = '0.13.0'
|
__version__ = '0.13.0'
|
||||||
|
|
||||||
|
|
||||||
from mopidy import settings as default_settings_module
|
|
||||||
from mopidy.utils.settings import SettingsProxy
|
|
||||||
settings = SettingsProxy(default_settings_module)
|
|
||||||
|
|||||||
@ -8,11 +8,6 @@ if sys.version_info < (2, 7):
|
|||||||
else:
|
else:
|
||||||
import unittest # noqa
|
import unittest # noqa
|
||||||
|
|
||||||
from mopidy import settings
|
|
||||||
|
|
||||||
# Nuke any local settings to ensure same test env all over
|
|
||||||
settings.local.clear()
|
|
||||||
|
|
||||||
|
|
||||||
def path_to_data_dir(name):
|
def path_to_data_dir(name):
|
||||||
path = os.path.dirname(__file__)
|
path = os.path.dirname(__file__)
|
||||||
|
|||||||
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||||||
import mock
|
import mock
|
||||||
import pykka
|
import pykka
|
||||||
|
|
||||||
from mopidy import core, settings
|
from mopidy import core
|
||||||
from mopidy.backends import dummy
|
from mopidy.backends import dummy
|
||||||
from mopidy.frontends.mpd import session
|
from mopidy.frontends.mpd import session
|
||||||
|
|
||||||
@ -42,7 +42,6 @@ class BaseTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pykka.ActorRegistry.stop_all()
|
pykka.ActorRegistry.stop_all()
|
||||||
settings.runtime.clear()
|
|
||||||
|
|
||||||
def sendRequest(self, request):
|
def sendRequest(self, request):
|
||||||
self.connection.response = []
|
self.connection.response = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user