Skip to content

Commit e076e3a

Browse files
update test
1 parent f3221f6 commit e076e3a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

ClientAdvisor/App/tests/test_app.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,15 @@ def set_env_vars():
4040

4141

4242
@pytest.fixture
43-
def app():
43+
def flaskapp():
4444
"""Create a test client for the app."""
45-
app = create_app()
46-
app.config.update({
47-
"TESTING": True,
48-
"PROVIDE_AUTOMATIC_OPTIONS": True, # Ensure this is set in the test environment
49-
})
50-
return app
45+
return create_app()
5146

5247

5348
@pytest.fixture
54-
def client(app):
49+
def client(flaskapp):
5550
"""Create a test client for the app."""
56-
return app.test_client()
51+
return flaskapp.test_client()
5752

5853

5954
def test_create_app():

0 commit comments

Comments
 (0)