Fix final missed `marketstore` mod import

Thanks @esme! XD

Also, do a linter pass and remove a buncha unused references.
service_subpkg
Tyler Goodlet 2023-03-08 20:20:11 -05:00
parent 6f92c6b52d
commit cda7a54718
1 changed files with 2 additions and 12 deletions

View File

@ -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)