Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
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
edx
edx-platform
Commits
7c7b4da7
Commit
7c7b4da7
authored
Jan 06, 2017
by
Christina Roberts
Committed by
GitHub
Jan 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14269 from edx/christina/tnl-6041
Remove flaky decorator from test_capa_module
parents
2a6432db
bf8b3455
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
common/lib/xmodule/xmodule/tests/test_capa_module.py
+4
-6
No files found.
common/lib/xmodule/xmodule/tests/test_capa_module.py
View file @
7c7b4da7
...
...
@@ -13,7 +13,6 @@ import textwrap
import
unittest
import
ddt
import
flaky
from
lxml
import
etree
from
mock
import
Mock
,
patch
,
DEFAULT
import
webob
...
...
@@ -1412,7 +1411,6 @@ class CapaModuleTest(unittest.TestCase):
RANDOMIZATION
.
ALWAYS
,
RANDOMIZATION
.
ONRESET
)
@flaky.flaky
# TNL-6041
def
test_random_seed_with_reset
(
self
,
rerandomize
):
"""
Run the test for each possible rerandomize value
...
...
@@ -1470,13 +1468,13 @@ class CapaModuleTest(unittest.TestCase):
# to another valid seed
else
:
# Since there's a small chance we might get the
# same seed again, give it
5
chances
# Since there's a small chance
(expected)
we might get the
# same seed again, give it
10
chances
# to generate a different seed
success
=
_retry_and_check
(
5
,
lambda
:
_reset_and_get_seed
(
module
)
!=
seed
)
success
=
_retry_and_check
(
10
,
lambda
:
_reset_and_get_seed
(
module
)
!=
seed
)
self
.
assertIsNotNone
(
module
.
seed
)
msg
=
'Could not get a new seed from reset after
5
tries'
msg
=
'Could not get a new seed from reset after
10
tries'
self
.
assertTrue
(
success
,
msg
)
@ddt.data
(
...
...
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