Fix final missed `marketstore` mod import
Thanks @esme! XD Also, do a linter pass and remove a buncha unused references.service_subpkg
parent
6f92c6b52d
commit
cda7a54718
|
@ -1,25 +1,19 @@
|
||||||
import pytest
|
|
||||||
import trio
|
import trio
|
||||||
|
|
||||||
from typing import AsyncContextManager
|
from typing import AsyncContextManager
|
||||||
|
|
||||||
from piker.service import Services
|
|
||||||
from piker.log import get_logger
|
|
||||||
|
|
||||||
from elasticsearch import Elasticsearch
|
from elasticsearch import Elasticsearch
|
||||||
from piker.data import marketstore
|
from piker.service import marketstore
|
||||||
|
|
||||||
|
|
||||||
def test_marketstore_startup_and_version(
|
def test_marketstore_startup_and_version(
|
||||||
open_test_pikerd: AsyncContextManager,
|
open_test_pikerd: AsyncContextManager,
|
||||||
loglevel,
|
loglevel,
|
||||||
):
|
):
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Verify marketstore starts correctly
|
Verify marketstore starts correctly
|
||||||
|
|
||||||
'''
|
'''
|
||||||
log = get_logger(__name__)
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
# port = 5995
|
# port = 5995
|
||||||
|
|
||||||
|
@ -36,7 +30,6 @@ def test_marketstore_startup_and_version(
|
||||||
len('3862e9973da36cfc6004b88172c08f09269aaf01')
|
len('3862e9973da36cfc6004b88172c08f09269aaf01')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
trio.run(main)
|
trio.run(main)
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,8 +42,6 @@ def test_elasticsearch_startup_and_version(
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
log = get_logger(__name__)
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
port = 19200
|
port = 19200
|
||||||
|
|
||||||
|
@ -62,5 +53,4 @@ def test_elasticsearch_startup_and_version(
|
||||||
es = Elasticsearch(hosts=[f'http://localhost:{port}'])
|
es = Elasticsearch(hosts=[f'http://localhost:{port}'])
|
||||||
assert es.info()['version']['number'] == '7.17.4'
|
assert es.info()['version']['number'] == '7.17.4'
|
||||||
|
|
||||||
|
|
||||||
trio.run(main)
|
trio.run(main)
|
||||||
|
|
Loading…
Reference in New Issue