def setUp(self): BaseTestCase.setUp(self) self.client = self.app.test_client() # create a user and some fake data test_user = create_user(**self.sample_user_data) fake_typeform = generate_fake_typeforms(test_user, 1)[0] generate_fake_responses(fake_typeform, self.fake_response_count)
def setUp(self): BaseTestCase.setUp(self) user = generate_fake_users(1)[0][0] typeforms = generate_fake_typeforms(user, 2) responses = generate_fake_responses(typeforms[0], 5) self.user = user self.typeforms = typeforms self.typeform = typeforms[0] self.responses = responses self.response = responses[0]
def setUp(self): BaseTestCase.setUp(self) self.pdf_file = 'data/sample_pdfs/sample_form.pdf' self.output_path = 'data/sample_output/sample_form-filled.pdf'
def setUp(self): BaseTestCase.setUp(self) self.pdf_file = 'data/sample_pdfs/sample_form.pdf'
def setUp(self): BaseTestCase.setUp(self) self.client = self.app.test_client() create_user(**self.sample_user_data)
def setUp(self): BaseTestCase.setUp(self) self.pdfs = [PDFFormFactory.create() for i in range(3)] db.session.commit()
def setUp(self): BaseTestCase.setUp(self) from selenium import webdriver self.browser = webdriver.Firefox() from selenium.webdriver.common.keys import Keys self.keys = Keys
def setUp(self): BaseTestCase.setUp(self) self.body = """Hey there, this is an email message.""" self.subject = "Hello from mail tests"
def setUp(self): BaseTestCase.setUp(self) load_initial_data(current_app)
def setUp(self): BaseTestCase.setUp(self) self.pdf_file = 'data/sample_pdfs/General_Petition_Form-form.pdf'