forked from joeli/challenge
initial commit, work in progress
Signed-off-by: Jan Heise <heise@dresearch.de>
This commit is contained in:
6
__init__.py
Normal file
6
__init__.py
Normal 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
13
challenge.py
Normal 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
16
test/__init__.py
Normal 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
|
||||
|
||||
BIN
test/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
test/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
test/__pycache__/test_404_event_cam.cpython-37.pyc
Normal file
BIN
test/__pycache__/test_404_event_cam.cpython-37.pyc
Normal file
Binary file not shown.
18
test/data/__init__.py
Normal file
18
test/data/__init__.py
Normal 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__)
|
||||
BIN
test/data/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
test/data/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
19
test/test_404_event_cam.py
Normal file
19
test/test_404_event_cam.py
Normal 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
|
||||
Reference in New Issue
Block a user