diff options
author | Torsten Grote <t@grobox.de> | 2020-07-24 11:09:30 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-07-28 15:42:39 -0300 |
commit | 08c3209dbc06329b4566ddd8d1dd7ab1c7e28ed7 (patch) | |
tree | 794658b2b9dfc3a39d8e374feae7e03919742f63 /tests/conftest.py | |
parent | 503c35d5f5972551cffa1fecb8b7b463503cc662 (diff) |
Add CI config for Gitlab CI integration tests (bash and pytest)
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 000000000..1922d1d40 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,30 @@ +import pytest + +from tests.components.bank import Bank +from tests.components.config import Config +from tests.components.exchange import Exchange +from tests.components.wallet import Wallet + + +@pytest.fixture +def config(watcher_getter, request, tmpdir, worker_id): + return Config(request, tmpdir, worker_id) + + +@pytest.fixture +def exchange(watcher_getter, request, config): + exchange = Exchange(config, watcher_getter, request) + exchange.start() + return exchange + + +@pytest.fixture +def bank(watcher_getter, request, config): + bank = Bank(config, watcher_getter, request) + bank.start() + return bank + + +@pytest.fixture +def wallet(watcher_getter, config): + return Wallet(config) |