forked from orbit-oss/flask
revert copyright year to project start
add copyright header to files
This commit is contained in:
parent
9bf5c3b3a3
commit
310fbfcf64
52 changed files with 167 additions and 52 deletions
|
|
@ -1,3 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Larger App Tests
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
:copyright: © 2010 by the Pallets team.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from yourapplication import app
|
||||
import pytest
|
||||
|
||||
|
|
@ -9,4 +18,4 @@ def client():
|
|||
|
||||
def test_index(client):
|
||||
rv = client.get('/')
|
||||
assert b"Hello World!" in rv.data
|
||||
assert b"Hello World!" in rv.data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
yourapplication
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
:copyright: © 2010 by the Pallets team.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from flask import Flask
|
||||
app = Flask('yourapplication')
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
yourapplication.views
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
:copyright: © 2010 by the Pallets team.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from yourapplication import app
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return 'Hello World!'
|
||||
return 'Hello World!'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue