mirror of
https://github.com/bottlesdevs/Bottles.git
synced 2026-10-26 03:29:39 +08:00
18 lines
551 B
Python
18 lines
551 B
Python
"""Core Manager tests"""
|
|
|
|
from bottles.backend.managers.manager import Manager
|
|
from bottles.backend.utils.gsettings_stub import GSettingsStub
|
|
|
|
|
|
def test_manager_is_singleton():
|
|
assert Manager(is_cli=True) is Manager(
|
|
is_cli=True
|
|
), "Manager should be singleton object"
|
|
assert Manager(is_cli=True) is Manager(
|
|
g_settings=GSettingsStub(), is_cli=True
|
|
), "Manager should be singleton even with different argument"
|
|
|
|
|
|
def test_manager_default_gsettings_stub():
|
|
assert Manager().settings.get_boolean("anything") is False
|