Ignore:
Timestamp:
May 19, 2020, 8:59:28 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
24617e1
Parents:
d5199c9
Message:
  • Switched from CamelCase to camel_case naming
    • Added mapservice-webclient to configure script (Closes #33)
    • Switched from unittest to pytest tests
    • Fixed testing errors with post datas by introducing x-fail vendor extension
    • Added x-vendor extension to mark a dependency on mapservice for an operation and the controller_test.mustache adds needed fixtures
    • Copying conftest.py from *_impl/tests into */test (it's a workaround to get the flask app fixtures)
    • Fixed controller_test.mustache, to test the first response with set status code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • buildhelpers/codegen/templates/__init__test.mustache

    rd5199c9 r9f0f35e  
    1 from flask_testing import TestCase
    2 
    3 from {{packageName}}_impl.tests import (
    4     create_app as orig_create_app,
    5     setUp as orig_setUp,
    6     tearDown as orig_tearDown
    7 )
    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.