Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Nov 15, 2024
1 parent f3221f6 commit e076e3a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ClientAdvisor/App/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,15 @@ def set_env_vars():


@pytest.fixture
def app():
def flaskapp():
"""Create a test client for the app."""
app = create_app()
app.config.update({
"TESTING": True,
"PROVIDE_AUTOMATIC_OPTIONS": True, # Ensure this is set in the test environment
})
return app
return create_app()


@pytest.fixture
def client(app):
def client(flaskapp):
"""Create a test client for the app."""
return app.test_client()
return flaskapp.test_client()


def test_create_app():
Expand Down

0 comments on commit e076e3a

Please sign in to comment.