Try fake wx module

This commit is contained in:
Ebag333
2017-03-24 18:00:51 -07:00
parent 66c4aefc1e
commit 21fbbf154d

View File

@@ -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