mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2026-04-18 13:33:31 +00:00
initial commit
initial commit
This commit is contained in:
17
tests/__init__.py
Normal file
17
tests/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import mair
|
||||
from mair import kinds
|
||||
import threading
|
||||
|
||||
_kind = 'MR18'
|
||||
|
||||
mars = {kind.id_: mair.connect(_kind) for kind in kinds.all}
|
||||
tests = mars[_kind]
|
||||
|
||||
def setup_package():
|
||||
tests.worker = threading.Thread(target = tests.run_server)
|
||||
tests.worker.daemon = True
|
||||
tests.worker.start()
|
||||
tests.validate_connection()
|
||||
|
||||
def teardown_package():
|
||||
tests.server.shutdown()
|
||||
Reference in New Issue
Block a user