<s> import pytest <EOL> @ pytest . fixture <EOL> def app ( ) : <EOL> import sys <EOL> sys . path . append ( '<STR_LIT:.>' ) <EOL> from sample_app import create_app <EOL> app = create_app ( ) <EOL> app . debug = True <EOL> app . testing = True <EOL> from flask_debug import Debug <EOL> Debug ( app ) <EOL> return app <EOL> @ pytest . fixture <EOL> def client ( app ) : <EOL> return app . test_client ( ) <EOL> def test_index ( client ) : <EOL> resp = client . get ( '<STR_LIT:/>' ) <EOL> assert resp . status_code == <NUM_LIT:200> </s>
