Commit b00748ce authored by Lance Michael O. Co's avatar Lance Michael O. Co 😢

refactored functional test

parent c04a5458
Pipeline #967 canceled with stages
import unittest
from selenium import webdriver from selenium import webdriver
browser=webdriver.Firefox() class NewVisitorTest(unittest.TestCase):
browser.get('http://localhost:8000')
def setUp(self):
self.browser = webdriver.Firefox()
def teardown(self):
self.browser.quit()
def test_can_start_and_retrieve_a_list(self):
self.brower.get('http://localhost:8000')
self.assertIn('Django', self.browser.title)
self.fail('Finish the Test')
assert 'Django' in brower.title if __name__=='__main__':
\ No newline at end of file unittest.main(warnings='ignore')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment