Changeset 9f0f35e for buildhelpers/codegen/templates/__init__test.mustache
- Timestamp:
- May 19, 2020, 8:59:28 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 24617e1
- Parents:
- d5199c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
buildhelpers/codegen/templates/__init__test.mustache
rd5199c9 r9f0f35e 1 from flask_testing import TestCase2 3 from {{packageName}}_impl.tests import (4 create_app as orig_create_app,5 setUp as orig_setUp,6 tearDown as orig_tearDown7 )8 9 class BaseTestCase(TestCase):10 def create_app(self):11 return orig_create_app(self)12 13 def setUp(self):14 orig_setUp(self)15 16 def tearDown(self):17 orig_tearDown(self)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 TracChangeset
for help on using the changeset viewer.
