Skip to content

Commit

Permalink
gl-testing: Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Jun 17, 2024
1 parent 55ffaba commit 5ab4dc5
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions libs/gl-testing/gltesting/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# Pytest fixtures
import tempfile
from .scheduler import Scheduler
from gltesting.clients import Clients, Client
from ephemeral_port_reserve import reserve
import pytest
from gltesting import certs
from gltesting.identity import Identity
import os
from pathlib import Path
import logging
import os
import sys
from pyln.testing.fixtures import bitcoind, teardown_checks, node_cls, test_name, executor, db_provider, test_base_dir, jsonschemas
from gltesting.network import node_factory
from pyln.testing.fixtures import directory as str_directory
from decimal import Decimal
from pathlib import Path

import pytest
from ephemeral_port_reserve import reserve
from gltesting import certs
from gltesting.clients import Clients
from pyln.testing.fixtures import directory as str_directory
from .scheduler import Scheduler

logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
Expand All @@ -22,7 +19,7 @@
logger = logging.getLogger(__name__)

@pytest.fixture()
def directory(str_directory : str) -> Path:
def directory(str_directory: str) -> Path:
return Path(str_directory) / "gl-testing"

@pytest.fixture()
Expand All @@ -45,7 +42,7 @@ def root_id(cert_directory):


@pytest.fixture()
def scheduler_id(root_id):
def scheduler_id():
certs.genca("/services")
id = certs.gencert("/services/scheduler")
yield id
Expand All @@ -57,7 +54,7 @@ def users_id():


@pytest.fixture()
def nobody_id(users_id):
def nobody_id():
identity = certs.gencert("/users/nobody")
os.environ.update(
{
Expand Down

0 comments on commit 5ab4dc5

Please sign in to comment.