def setup(self): inject.clear_and_configure(configure_test) app = make_app() app.config["TESTING"] = True with app.test_client() as client: self.client = client self.user_route = "/users" self.good_route = "/goods" self.store_route = "/stores"
import inject from store_app import make_app if __name__ == '__main__': app = make_app() app.run(port=8080, debug=True)
def setup(self): inject.clear_and_configure(configure_test) app = make_app() app.config['TESTING'] = True with app.test_client() as client: self.client = client