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/controller.mustache

    rd5199c9 r9f0f35e  
    55{{/imports}}
    66from {{packageName}} import util
     7from {{packageName}}_impl.controllers import {{classFilename}}
    78{{#operations}}
    89{{#operation}}
    9 
    10 from {{packageName}}_impl.controllers import {{classname}}
    1110
    1211def {{operationId}}({{#allParams}}{{paramName}}{{^required}}=None{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}):  # noqa: E501
    … …  
    109108        {{/isMapContainer}}
    110109    {{/allParams}}
    111     return {{classname}}.{{operationId}}({{#allParams}}{{paramName}}{{^required}}={{paramName}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
     110    return {{classFilename}}.{{operationId}}({{#allParams}}{{paramName}}{{^required}}={{paramName}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
    112111{{/operation}}
    113112{{/operations}}
Note: See TracChangeset for help on using the changeset viewer.