Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-activetable
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
xblock-activetable
Commits
17770666
Commit
17770666
authored
Oct 30, 2015
by
Sven Marnach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix validate_field_data unit test.
parent
706d9372
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
tests/unit/test_activetable.py
+7
-3
No files found.
tests/unit/test_activetable.py
View file @
17770666
...
@@ -24,17 +24,21 @@ class ActiveTableTest(unittest.TestCase):
...
@@ -24,17 +24,21 @@ class ActiveTableTest(unittest.TestCase):
def
test_validate_field_data
(
self
):
def
test_validate_field_data
(
self
):
data
=
mock
.
Mock
()
data
=
mock
.
Mock
()
data
.
table_definition
=
'invalid'
data
.
content
=
'invalid'
data
.
column_widths
=
''
data
.
column_widths
=
''
data
.
row_heights
=
''
data
.
row_heights
=
''
self
.
verify_validation
(
data
,
False
)
self
.
verify_validation
(
data
,
False
)
data
.
table_definition
=
'[["header"], [6.283]]'
data
.
content
=
'[["header"], [6.283]]'
self
.
verify_validation
(
data
,
True
)
self
.
verify_validation
(
data
,
True
)
data
.
column_widths
=
'invalid'
data
.
column_widths
=
'invalid'
self
.
verify_validation
(
data
,
False
)
self
.
verify_validation
(
data
,
False
)
data
.
column_widths
=
'[1, 2, 3]'
data
.
column_widths
=
'[1, 2]'
self
.
verify_validation
(
data
,
False
)
data
.
column_widths
=
'[1]'
self
.
verify_validation
(
data
,
True
)
self
.
verify_validation
(
data
,
True
)
data
.
row_heights
=
'invalid'
data
.
row_heights
=
'invalid'
self
.
verify_validation
(
data
,
False
)
self
.
verify_validation
(
data
,
False
)
data
.
row_heights
=
'[1, 2, 3]'
data
.
row_heights
=
'[1, 2, 3]'
self
.
verify_validation
(
data
,
False
)
data
.
row_heights
=
'[1, 2]'
self
.
verify_validation
(
data
,
True
)
self
.
verify_validation
(
data
,
True
)
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