Skip to content

Commit

Permalink
Update tests for new controller scheme. Increment version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Praul committed Sep 13, 2015
1 parent 97a1f79 commit 4bd3143
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#Changelog
Full list of changes for the environment.
## Version 1.0.1
- Routes loaded differently so that multiple can use the same controller

## Version 1.0.0
First version; September 13, 2015.
7 changes: 4 additions & 3 deletions tests/helpers/app_helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def test_create_routes_empty_controller_should_raises_error(self):
app = Flask(__name__)

test_routes = {
'ERROR__': {
'error': {
'uri': '/__error/',
'methods': ['GET']
'methods': ['GET'],
'controller': '_ERROR'
}
}

Expand All @@ -66,7 +67,7 @@ def test_create_routes_with_unimplemented_http_method_should_raises_error(self):

from flask_site.helpers import routes_config

routes_config['Index']['methods'].append('POST')
routes_config['index']['methods'].append('POST')

create_routes(app, app_routes=routes_config)

Expand Down

0 comments on commit 4bd3143

Please sign in to comment.