Skip to content

Commit

Permalink
PEBCAK
Browse files Browse the repository at this point in the history
  • Loading branch information
rerpha committed Dec 6, 2024
1 parent 6bfd9d7 commit c2faea3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 33 deletions.
3 changes: 2 additions & 1 deletion BlockServerToKafka/block_server_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
from typing import Any

import ca
from CaChannel import CaChannel, CaChannelException

from BlockServer.core.macros import BLOCK_PREFIX
from BlockServerToKafka.kafka_producer import ProducerWrapper
from CaChannel import CaChannel, CaChannelException
from server_common.utilities import dehex_and_decompress, print_and_log


Expand Down
5 changes: 3 additions & 2 deletions BlockServerToKafka/kafka_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
from time import sleep
from typing import List

from BlockServerToKafka.forwarder_config import ForwarderConfig
from kafka import KafkaConsumer, KafkaProducer, errors
from server_common.utilities import print_and_log
from streaming_data_types.fbschemas.forwarder_config_update_fc00.Protocol import (
Protocol,
)

from BlockServerToKafka.forwarder_config import ForwarderConfig
from server_common.utilities import print_and_log


class ProducerWrapper:
"""
Expand Down
28 changes: 0 additions & 28 deletions BlockServerToKafka/test_modules/__init__.py

This file was deleted.

3 changes: 2 additions & 1 deletion BlockServerToKafka/test_modules/test_block_server_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

import unittest

from BlockServerToKafka.block_server_monitor import BlockServerMonitor
from mock import MagicMock, patch

from BlockServerToKafka.block_server_monitor import BlockServerMonitor


class TestBlockServerMonitor(unittest.TestCase):
test_address = "TEST_ADDRESS"
Expand Down
3 changes: 2 additions & 1 deletion BlockServerToKafka/test_modules/test_forwarder_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# http://opensource.org/licenses/eclipse-1.0.php
import unittest

from BlockServerToKafka.forwarder_config import ForwarderConfig
from streaming_data_types.fbschemas.forwarder_config_update_fc00.Protocol import (
Protocol,
)
Expand All @@ -24,6 +23,8 @@
)
from streaming_data_types.forwarder_config_update_fc00 import deserialise_fc00

from BlockServerToKafka.forwarder_config import ForwarderConfig


class TestForwarderConfig(unittest.TestCase):
test_schema = "schema"
Expand Down

0 comments on commit c2faea3

Please sign in to comment.