diff --git a/examples/create_child_keys.py b/examples/create_child_keys.py index eefa3710..5e5d23e7 100644 --- a/examples/create_child_keys.py +++ b/examples/create_child_keys.py @@ -1,6 +1,7 @@ -import httpx -import sys import json +import sys + +import httpx def create_child_keys(base_url, api_key, count=3): @@ -42,3 +43,4 @@ if __name__ == "__main__": print(json.dumps(keys, indent=2)) else: print("\nNo child keys were created.") + diff --git a/routstr/core/main.py b/routstr/core/main.py index 3083097d..00a51ec3 100644 --- a/routstr/core/main.py +++ b/routstr/core/main.py @@ -15,8 +15,7 @@ from ..discovery import providers_cache_refresher, providers_router from ..nip91 import announce_provider from ..payment.models import models_router, update_sats_pricing from ..payment.price import update_prices_periodically -from ..proxy import (initialize_upstreams, proxy_router, - refresh_model_maps_periodically) +from ..proxy import initialize_upstreams, proxy_router, refresh_model_maps_periodically from ..wallet import periodic_payout from .admin import admin_router from .db import create_session, init_db, run_migrations diff --git a/tests/integration/test_child_keys.py b/tests/integration/test_child_keys.py index 77da7675..4265430a 100644 --- a/tests/integration/test_child_keys.py +++ b/tests/integration/test_child_keys.py @@ -1,9 +1,11 @@ -import pytest import secrets + +import pytest from fastapi import HTTPException -from routstr.core.db import ApiKey + +from routstr.auth import adjust_payment_for_tokens, pay_for_request from routstr.balance import create_child_key -from routstr.auth import pay_for_request, adjust_payment_for_tokens +from routstr.core.db import ApiKey from routstr.core.settings import settings