MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / test_getAllFits

Function test_getAllFits

tests/test_modules/test_service/test_fit.py:14–25  ·  view source on GitHub ↗
(DB, RifterFit, KeepstarFit)

Source from the content-addressed store, hash-verified

12
13
14def test_getAllFits(DB, RifterFit, KeepstarFit):
15 assert len(Fit.getAllFits()) == 0
16
17 DB['db'].save(RifterFit)
18 DB['db'].save(KeepstarFit)
19
20 # For some reason in Travis this adds the first fit twice. WHY?!?
21 assert len(Fit.getAllFits()) != 0
22
23 # Cleanup after ourselves
24 DB['db'].remove(RifterFit)
25 DB['db'].remove(KeepstarFit)
26
27
28def test_getFitsWithShip_RifterFit(DB, RifterFit):

Callers

nothing calls this directly

Calls 3

getAllFitsMethod · 0.80
saveMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected