source: buildhelpers/codegen/templates/__init__test.mustache@ 9b8dd22

debian/bullseye
Last change on this file since 9b8dd22 was f9321aa, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago
  • Adapted code_generator to
    • handle several packages
    • to configure the port from yaml specification
    • to use the VERSION used by setup.py
  • Added deviceservice.yaml with first version of webservice
  • Moved Config loader and HttpErrors to gnuboat.common
  • Moved rrd archive schema to gnuboat.common.device
  • Property mode set to 100644
File size: 511 bytes
RevLine 
[3a89adb]1from flask_testing import TestCase
2
[f9321aa]3from {{packageName}}_impl.tests import (
4 create_app as orig_create_app,
5 setUp as orig_setUp,
6 tearDown as orig_tearDown
[43fd35c]7)
[fc99a86]8
[3a89adb]9class BaseTestCase(TestCase):
[be25db1]10 def create_app(self):
[f9321aa]11 return orig_create_app(self)
[be25db1]12
13 def setUp(self):
[f9321aa]14 orig_setUp(self)
[be25db1]15
16 def tearDown(self):
[f9321aa]17 orig_tearDown(self)
[ae2ff15]18
19 def check_key(self, key, value, data):
20 assert key in data, "{} not in data {}".format(key, data)
21 assert data[key] == value, "{} = {}".format(value, data[key])
Note: See TracBrowser for help on using the repository browser.