Conditions | 1 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # tests/test_fakeapi.py |
||
24 | @pytest.fixture(scope="session") |
||
25 | def fake_api(): |
||
26 | """Yield api inerface when needed. |
||
27 | |||
28 | Scope set to session, to only create once per test session. |
||
29 | |||
30 | Yields |
||
31 | ------ |
||
32 | FakeAPI |
||
33 | FakeAPI instance using a localhost as url. |
||
34 | """ |
||
35 | api = FakeAPI.create() |
||
36 | yield api |
||
37 | api.shutdown() |
||
38 |