initial commit, work in progress

Signed-off-by: Jan Heise <heise@dresearch.de>
This commit is contained in:
Jan Heise
2022-04-14 16:12:51 +02:00
commit 99ae801d87
9 changed files with 76 additions and 0 deletions

4
README.md Normal file
View File

@@ -0,0 +1,4 @@
Challenge
=========

6
__init__.py Normal file
View File

@@ -0,0 +1,6 @@
""" Mini-Challenge
Ziel ist es, die Adapter-KLasse zu erweitern. Siehe challenge.py.
"""
from .challenge import Adapter

13
challenge.py Normal file
View File

@@ -0,0 +1,13 @@
""" Mini-Challenge """
class Adapter():
""" Adapter class
Aufgabe: Asynchron Daten lesen, konvertieren und zurückliefern.
"""
def __init__(self, path):
self.path = path
def retrieve_json(self, name):
pass

16
test/__init__.py Normal file
View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
"""
Schneider Intercom ICX
======================
Test module
.. moduleauthor:: Jan Heise <heise@dresearch.de>
"""
__copyright__ = 'Copyright (C) 2015-2022 DResearch Digital Media Systems GmbH'
__revision__ = ''
__docformat__ = 'reStructuredText'
import os

Binary file not shown.

Binary file not shown.

18
test/data/__init__.py Normal file
View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
"""
Schneider Intercom IXC
======================
Test data
.. moduleauthor:: Jan Heise <heise@dresearch.de>
"""
__copyright__ = 'Copyright (C) 2015-2022 DResearch Digital Media Systems GmbH'
__revision__ = ''
__docformat__ = 'reStructuredText'
import os
# Defines the directory for the test data
TEST_DATA_DIR = os.path.dirname(__file__)

Binary file not shown.

View File

@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
"""
Acceptance Test
~~~~~~~~~~~~~~~
:Ablauf:
- Adapter wird erzeugt
- Daten werden angefordert
:Erwartetes Ergebnis:
- Daten sind korrekt
"""
from nose.tools import assert_equals
from .. import Adapter
def test_acceptance():
""" Acceptance Test """
adapter = Adapter