From cda7a54718329771524662a9b64d3a3bdd6829f4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 8 Mar 2023 20:20:11 -0500 Subject: [PATCH] Fix final missed `marketstore` mod import Thanks @esme! XD Also, do a linter pass and remove a buncha unused references. --- tests/test_databases.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/test_databases.py b/tests/test_databases.py index 7fcee34a..a469abd5 100644 --- a/tests/test_databases.py +++ b/tests/test_databases.py @@ -1,25 +1,19 @@ -import pytest import trio from typing import AsyncContextManager -from piker.service import Services -from piker.log import get_logger - from elasticsearch import Elasticsearch -from piker.data import marketstore +from piker.service import marketstore + def test_marketstore_startup_and_version( open_test_pikerd: AsyncContextManager, loglevel, ): - ''' Verify marketstore starts correctly ''' - log = get_logger(__name__) - async def main(): # port = 5995 @@ -36,7 +30,6 @@ def test_marketstore_startup_and_version( len('3862e9973da36cfc6004b88172c08f09269aaf01') ) - trio.run(main) @@ -49,8 +42,6 @@ def test_elasticsearch_startup_and_version( ''' - log = get_logger(__name__) - async def main(): port = 19200 @@ -62,5 +53,4 @@ def test_elasticsearch_startup_and_version( es = Elasticsearch(hosts=[f'http://localhost:{port}']) assert es.info()['version']['number'] == '7.17.4' - trio.run(main)