Skip to content

Commit

Permalink
Move test classes to rohrpost.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed May 29, 2017
1 parent 1f717a7 commit 4e354a0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
17 changes: 17 additions & 0 deletions rohrpost/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import json


class ReplyChannel:
def __init__(self):
self.data = []
self.closed = False

def send(self, message_dict):
if not self.closed:
self.data.append(json.loads(message_dict.get('text')))
self.closed = message_dict.get('close', False)


class Message:
def __init__(self):
self.reply_channel = ReplyChannel()
19 changes: 1 addition & 18 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
import json

import pytest

from rohrpost.mixins import NotifyOnChange


class ReplyChannel:
def __init__(self):
self.data = []
self.closed = False

def send(self, message_dict):
if not self.closed:
self.data.append(json.loads(message_dict.get('text')))
self.closed = message_dict.get('close', False)


class Message:
def __init__(self):
self.reply_channel = ReplyChannel()
from rohrpost.tests import Message


@pytest.fixture
Expand Down

0 comments on commit 4e354a0

Please sign in to comment.