Skip to content
Browse files

TST: amqp topic output test: import pika if exotic

only import the pika library if exotic tests are enabled
  • Loading branch information...
wagner-certat committed Jul 4, 2019
1 parent b017f80 commit 926eeac067f7d9d300e6fa548fa3a02b1970836d
Showing with 4 additions and 3 deletions.
  1. +4 −3 intelmq/tests/bots/outputs/amqptopic/
@@ -1,14 +1,15 @@
# -*- coding: utf-8 -*-
import json
import os
import unittest

import intelmq.lib.test as test
import intelmq.lib.utils as utils
from intelmq.bots.outputs.amqptopic.output import AMQPTopicOutputBot
from intelmq.tests.bots.outputs.redis.test_output import EXAMPLE_EVENT
import pika
import json

if os.environ.get('INTELMQ_TEST_EXOTIC'):
from intelmq.bots.outputs.amqptopic.output import AMQPTopicOutputBot
import pika

class TestAMQPTopicOutputBot(test.BotTestCase, unittest.TestCase):

0 comments on commit 926eeac

Please sign in to comment.
You can’t perform that action at this time.