MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / CurseFit

Function CurseFit

_development/helpers_fits.py:32–46  ·  view source on GitHub ↗
(DB, Gamedata, Saveddata)

Source from the content-addressed store, hash-verified

30# noinspection PyShadowingNames
31@pytest.fixture
32def CurseFit(DB, Gamedata, Saveddata):
33 print("Creating Curse - With Neuts")
34 item = DB['gamedata_session'].query(Gamedata['Item']).filter(Gamedata['Item'].name == "Curse").first()
35 ship = Saveddata['Ship'](item)
36 # setup fit
37 fit = Saveddata['Fit'](ship, "Curse - With Neuts")
38
39 mod = Saveddata['Module'](DB['db'].getItem("Medium Energy Neutralizer II"))
40 mod.state = Saveddata['State'].ONLINE
41
42 # Add 5 neuts
43 for _ in range(5):
44 fit.modules.append(mod)
45
46 return fit
47
48
49# noinspection PyShadowingNames

Callers

nothing calls this directly

Calls 2

getItemMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected