Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40 Project1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jason
CSCI40 Project1
Commits
19800b3f
Commit
19800b3f
authored
Apr 01, 2020
by
Jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted redundant functional test
parent
c877815b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
proj1_functional_test.py
proj1_functional_test.py
+0
-38
No files found.
proj1_functional_test.py
deleted
100644 → 0
View file @
c877815b
import
unittest
from
selenium
import
webdriver
class
NewVisitorTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
browser
-
webdriver
.
Firefox
()
def
tearDown
(
self
):
self
.
browser
.
quit
()
def
test_can_display_a_heroes_list_and_more_information_per_hero
(
self
):
# Laura looks at the status from a yogurt shop open during the quarantine called
# The Good Place Froyo Shop.
# She decides to visit the shop's page:
self
.
browser
.
get
(
'http://localhost:8000'
)
# She sees the page title and header mention
# 'The Good Place FroYo Shop'
self
.
assertIn
(
'The Good Place FroYo Shop'
,
self
.
browser
.
title
)
# She sees 12 templates and decides to click on one.
# When she selects one of the templates , she is sent to another page
# containing the function of the template.
template
=
self
.
browser
.
find_element_by_id
(
'ingredients_list'
)
template
.
click
()
time
.
sleep
(
1
)
self
.
assertEqual
(
'http://localhost:8000/froyo/ingredients_list'
,
self
.
browser
.
getCurrentUrl
()
)
self
.
fail
(
'Finish the test!'
)
if
__name__
==
'__main__'
:
unittest
.
main
(
warnings
=
'ignore'
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment