Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
414391b8
Commit
414391b8
authored
Apr 24, 2015
by
Daniel W Bond
Browse files
added useful comments
parent
bbf7536a
Changes
2
Show whitespace changes
Inline
Side-by-side
bookshare/functional_tests.py
View file @
414391b8
...
...
@@ -263,6 +263,10 @@ class ListingTests(SeleniumSetUpTearDown):
class
LookoutTests
(
SeleniumSetUpTearDown
):
"""Tests all the user interactions pertaining to the models in the lookouts app."""
def
setUp
(
self
):
# make sure that a Julius Caesar Lookout doesn't already exist
return
super
(
LookoutTests
,
self
).
setUp
()
def
tearDown
(
self
):
# delete the George Mason Lookout
return
super
(
LookoutTests
,
self
).
tearDown
()
...
...
bookshare/lookouts/models.py
View file @
414391b8
...
...
@@ -32,4 +32,5 @@ class Lookout(TimeStampedModel):
class
Meta
:
ordering
=
[
'isbn'
]
# a student can't create the same lookout twice
unique_together
=
[
'owner'
,
'isbn'
]
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