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 546c2e0 commit 349a0a9Copy full SHA for 349a0a9
app/ch14_testing/final/tests/test_client.py
@@ -9,20 +9,22 @@
9
))
10
sys.path.insert(0, container_folder)
11
12
+import pypi_org.app
13
from pypi_org.app import app as flask_app
14
15
16
@pytest.fixture
17
def client():
- flask_app.app.config['TESTING'] = True
18
- client = flask_app.app.test_client()
+ flask_app.config['TESTING'] = True
19
+ client = flask_app.test_client()
20
21
try:
- flask_app.register_blueprints()
22
- except:
+ pypi_org.app.register_blueprints()
23
+ except Exception as x:
24
+ print(x)
25
pass
26
- flask_app.init_db()
- # client.post()
27
+ pypi_org.app.setup_db()
28
+ client.post()
29
30
yield client
0 commit comments