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
browser=webdriver.Firefox()
browser.get('http://localhost:8000')
class NewVisitorTest(unittest.TestCase):
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
\ No newline at end of file
if __name__=='__main__':
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