Skip to content

Commit

Permalink
Adds state to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hfjn committed Sep 19, 2019
1 parent 6ac8a71 commit 15e7d64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from confluent_kafka.cimpl import Producer, TopicPartition
from pykafka.exceptions import NoBrokersAvailableError

from esque.cli.options import State
from esque.cluster import Cluster
from esque.config import sample_config_path, Config
from esque.errors import raise_for_kafka_error
Expand Down Expand Up @@ -211,3 +212,8 @@ def cluster(test_config):
raise ex

yield cluster


@pytest.fixture()
def state(test_config):
yield State()
6 changes: 0 additions & 6 deletions tests/integration/test_topic_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
import confluent_kafka
import pytest

from esque.cli.options import State
from esque.controller.topic_controller import TopicController
from esque.errors import KafkaException
from esque.resources.topic import Topic, TopicDiff


@pytest.fixture()
def state(test_config):
yield State()


@pytest.fixture()
def topic_controller(cluster):
yield cluster.topic_controller
Expand Down

0 comments on commit 15e7d64

Please sign in to comment.