forked from orbit-oss/flask
Merge branch '0.11-maintenance'
This commit is contained in:
commit
7132feb1a5
27 changed files with 98 additions and 52 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
3. Instruct flask to use the right application
|
||||
|
||||
export FLASK_APP=flaskr.flaskr
|
||||
export FLASK_APP=flaskr
|
||||
|
||||
4. initialize the database with this command:
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
from flaskr import app
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import sys, os
|
||||
|
||||
basedir = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.insert(0, basedir + '/../')
|
||||
|
||||
from flaskr import flaskr
|
||||
|
|
@ -9,11 +9,11 @@
|
|||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
import os
|
||||
import tempfile
|
||||
import pytest
|
||||
from flaskr import flaskr
|
||||
|
||||
from context import flaskr
|
||||
|
||||
@pytest.fixture
|
||||
def client(request):
|
||||
|
|
|
|||
2
examples/minitwit/.gitignore
vendored
Normal file
2
examples/minitwit/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
minitwit.db
|
||||
.eggs/
|
||||
3
examples/minitwit/MANIFEST.in
Normal file
3
examples/minitwit/MANIFEST.in
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
graft minitwit/templates
|
||||
graft minitwit/static
|
||||
include minitwit/schema.sql
|
||||
|
|
@ -31,5 +31,5 @@
|
|||
|
||||
~ Is it tested?
|
||||
|
||||
You betcha. Run the `test_minitwit.py` file to
|
||||
You betcha. Run the `python setup.py test` file to
|
||||
see the tests pass.
|
||||
|
|
|
|||
1
examples/minitwit/minitwit/__init__.py
Normal file
1
examples/minitwit/minitwit/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from minitwit import app
|
||||
2
examples/minitwit/setup.cfg
Normal file
2
examples/minitwit/setup.cfg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[aliases]
|
||||
test=pytest
|
||||
16
examples/minitwit/setup.py
Normal file
16
examples/minitwit/setup.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='minitwit',
|
||||
packages=['minitwit'],
|
||||
include_package_data=True,
|
||||
install_requires=[
|
||||
'flask',
|
||||
],
|
||||
setup_requires=[
|
||||
'pytest-runner',
|
||||
],
|
||||
tests_require=[
|
||||
'pytest',
|
||||
],
|
||||
)
|
||||
|
|
@ -9,9 +9,9 @@
|
|||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
import os
|
||||
import minitwit
|
||||
import tempfile
|
||||
import pytest
|
||||
from minitwit import minitwit
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
Loading…
Add table
Add a link
Reference in a new issue