Пример #1
0
 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)
Пример #2
0
 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]
Пример #3
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'
Пример #4
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.pdf_file = 'data/sample_pdfs/sample_form.pdf'
Пример #5
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.client = self.app.test_client()
     create_user(**self.sample_user_data)
Пример #6
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'
Пример #7
0
 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
Пример #9
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.body = """Hey there, this is an email message."""
     self.subject = "Hello from mail tests"
Пример #10
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.pdfs = [PDFFormFactory.create() for i in range(3)]
     db.session.commit()
Пример #11
0
 def setUp(self):
     BaseTestCase.setUp(self)
     load_initial_data(current_app)
Пример #12
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.pdf_file = 'data/sample_pdfs/General_Petition_Form-form.pdf'