def tearDown(self): drop_users_table() drop_questions_table() drop_answers_table() create_users_table() create_questions_table() create_answers_table()
import re from datetime import datetime from flask_jwt_extended import create_access_token, jwt_required, \ get_jwt_identity from flask_restplus import Resource, reqparse, fields from flask import request from app import api_v1, api_home from app.database import connect_to_db, create_answers_table, \ create_questions_table, create_users_table from app.models import Question, Answer, User from app.validators import Validate cursor = connect_to_db() create_users_table() create_questions_table() create_answers_table() api_v1.namespaces.clear() ns1 = api_v1.namespace('api/v1/auth', description='End points regarding user operations') ns = api_v1.namespace('api/v1', description='End points regarding questions operations') ns3 = api_v1.namespace('api/v1', description='End points regarding answers operations') ns2 = api_home.namespace('', description='Posting a question and getting all questions') ns4 = api_v1.namespace('api/v1', description='End points regarding an answer operations') ns5 = api_v1.namespace('api/v1',
def tearDown(self): drop_entries_table() drop_users_table() create_users_table() create_entries_table