Skip to content

Commit

Permalink
Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
thspinto committed Jun 27, 2018
1 parent 159e62f commit 70de390
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions clients/__init__.py

This file was deleted.

2 changes: 2 additions & 0 deletions quintoandar_kafka/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from quintoandar_kafka.idempotence_client import IdempotenceClient # noqa: F401,E501
from quintoandar_kafka.kafka_consumer import KafkaConsumerClient # noqa: F401,E501
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest.mock import MagicMock
from behave import given, when, then # pylint: disable=E0611
from hamcrest import assert_that
from clients import IdempotenceClient
from quintoandar_kafka import IdempotenceClient


message = MagicMock()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from unittest.mock import MagicMock, patch
from behave import given, when, then # pylint: disable=E0611
from hamcrest import assert_that, equal_to
from clients import KafkaConsumerClient
from quintoandar_kafka import KafkaConsumerClient

message = MagicMock()
message.value = {'test1': 'test2'}
message.topic = 'test3'


@given('A default KafkaConsumerClient is instanciated')
@patch('clients.kafka_consumer.KafkaConsumer')
@patch('quintoandar_kafka.kafka_consumer.KafkaConsumer')
def step_impl_given_default_KafkaConsumer_instance(context, kafkaConsumerMock):
context.processor = MagicMock()
context.group_id = 'test1'
Expand All @@ -23,7 +23,7 @@ def step_impl_given_default_KafkaConsumer_instance(context, kafkaConsumerMock):


@given('KafkaConsumerClient with custom deserializer and idempotenceClinet')
@patch('clients.kafka_consumer.KafkaConsumer')
@patch('quintoandar_kafka.kafka_consumer.KafkaConsumer')
def step_impl_given_custom_KafkaConsumer_instance(context, kafkaConsumerMock):
context.processor = MagicMock()
context.group_id = 'test1'
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
if sys.version_info < (3, 2):
raise Exception('Only Python 3.2+ is supported')

setup(name='idempotence_client',
version='0.0.1',
setup(name='quintoandar_kafka',
version='0.2.0',
description="Checks messages to avoid reprocessing events.",
url='https://github.com/quintoandar/python-kafka-idempotence-client',
url='https://github.com/quintoandar/python-kafka',
packages=find_packages(exclude=['ez_setup', 'examples',
'tests', 'release']),
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
print("------------------ TESTS ----------------")
print("-----------------------------------------")
print()
result = behave_main("clients/tests")
result = behave_main("quintoandar_kafka/tests")
cov.stop()
print()
print("-----------------------------------------")
Expand Down

0 comments on commit 70de390

Please sign in to comment.