Try fake wx module
This commit is contained in:
@@ -11,6 +11,10 @@ from _development.helpers import DBInMemory as DB, Gamedata, Saveddata
|
||||
from _development.helpers_fits import RifterFit, KeepstarFit
|
||||
from service.fit import Fit
|
||||
|
||||
# Fake import wx
|
||||
from types import ModuleType
|
||||
wx = ModuleType("fake_module")
|
||||
sys.modules[wx.__name__] = wx
|
||||
|
||||
def test_getAllFits(DB, RifterFit, KeepstarFit):
|
||||
assert len(Fit.getAllFits()) == 0
|
||||
|
||||
Reference in New Issue
Block a user