* First step in more tests

(cherry picked from commit b9af117)

* Formatting

(cherry picked from commit 5f037e6)

* Booster test fixes

* Switch to wx3.0

* try coda
* Test output

* Tweak travis

* try reduced virtualenv

* Tweak travis

* Reduce test to a single one.

* Formatting
This commit is contained in:
Ebag333
2017-04-02 10:26:11 -07:00
committed by GitHub
parent 92722d491f
commit 1daafd15e6
6 changed files with 107 additions and 45 deletions

View File

@@ -131,6 +131,7 @@ def Saveddata():
from eos.saveddata.character import Character
from eos.saveddata.module import Module, State
from eos.saveddata.citadel import Citadel
from eos.saveddata.booster import Booster
helper = {
'Structure': Citadel,
@@ -139,5 +140,6 @@ def Saveddata():
'Character': Character,
'Module' : Module,
'State' : State,
'Booster' : Booster,
}
return helper

View File

@@ -0,0 +1,12 @@
import pytest
# noinspection PyPackageRequirements
from _development.helpers import DBInMemory as DB, Gamedata, Saveddata
# noinspection PyShadowingNames
@pytest.fixture
def StrongBluePillBooster (DB, Gamedata, Saveddata):
print("Creating Strong Blue Pill Booster")
item = DB['gamedata_session'].query(Gamedata['Item']).filter(Gamedata['Item'].name == "Strong Blue Pill Booster").first()
return Saveddata['Booster'](item)