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
df9f80ff
Commit
df9f80ff
authored
Aug 26, 2014
by
Tim Babych
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for at least one group before saving a group configuration
parent
a0e69723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
common/test/acceptance/tests/test_studio_split_test.py
+7
-5
No files found.
common/test/acceptance/tests/test_studio_split_test.py
View file @
df9f80ff
...
...
@@ -644,9 +644,9 @@ class GroupConfigurationsTest(ContainerBase, SplitTestMixin):
When I set a name
And I delete the name of one of the groups and try to save
Then I see error message "All groups must have a name"
When I delete
the group without name
and try to save
Then I see error message "
Please add at least two groups
."
When I add
new
group and try to save
When I delete
all the groups
and try to save
Then I see error message "
There must be at least one group
."
When I add
a
group and try to save
Then I see the group configuration is saved successfully
"""
def
try_to_save_and_verify_error_message
(
message
):
...
...
@@ -670,7 +670,9 @@ class GroupConfigurationsTest(ContainerBase, SplitTestMixin):
config
.
name
=
"Name of the Group Configuration"
config
.
groups
[
1
]
.
name
=
''
try_to_save_and_verify_error_message
(
"All groups must have a name."
)
config
.
groups
[
1
]
.
remove
()
config
.
groups
[
0
]
.
remove
()
config
.
groups
[
0
]
.
remove
()
try_to_save_and_verify_error_message
(
"There must be at least one group."
)
config
.
add_group
()
# Save the configuration
...
...
@@ -680,7 +682,7 @@ class GroupConfigurationsTest(ContainerBase, SplitTestMixin):
config
,
name
=
"Name of the Group Configuration"
,
description
=
"Description of the group configuration."
,
groups
=
[
"Group A"
,
"Group B"
]
groups
=
[
"Group A"
]
)
def
test_group_configuration_empty_usage
(
self
):
...
...
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