We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b991af commit f7a91fbCopy full SHA for f7a91fb
run.py
@@ -0,0 +1,4 @@
1
+from tvseries.core import app
2
+
3
+if __name__ == "__main__":
4
+ app.run(debug=True)
tvseries/__init__.py
app.py renamed to tvseries/core.py
@@ -11,7 +11,3 @@ def home():
11
@app.route('/<name>')
12
def name(name):
13
return "<h1>Hello {}!</h1>".format(name)
14
-
15
16
-if __name__ == "__main__":
17
- app.run(debug=True)
tests.py renamed to tvseries/tests.py
@@ -6,7 +6,7 @@ class TestCore:
6
7
@pytest.fixture
8
def app(self):
9
- from app import app
+ from core import app
10
return app
def test_get_home(self):
0 commit comments