Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
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
lettuce
Commits
b44e11b0
Commit
b44e11b0
authored
Jan 28, 2013
by
Gabriel Falcao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing a failing test introduced by feature tags
parent
bbaadafd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
lettuce/core.py
+0
-1
tests/unit/test_feature_parser.py
+2
-2
No files found.
lettuce/core.py
View file @
b44e11b0
...
@@ -1106,7 +1106,6 @@ class Feature(object):
...
@@ -1106,7 +1106,6 @@ class Feature(object):
def
_check_scenario_syntax
(
self
,
lines
,
filename
):
def
_check_scenario_syntax
(
self
,
lines
,
filename
):
empty_scenario
=
(
'
%
s:'
%
(
self
.
language
.
first_of_scenario
))
.
lower
()
empty_scenario
=
(
'
%
s:'
%
(
self
.
language
.
first_of_scenario
))
.
lower
()
for
line
in
lines
:
for
line
in
lines
:
if
line
.
lower
()
==
empty_scenario
:
if
line
.
lower
()
==
empty_scenario
:
raise
LettuceSyntaxError
(
raise
LettuceSyntaxError
(
...
...
tests/unit/test_feature_parser.py
View file @
b44e11b0
...
@@ -411,7 +411,7 @@ Feature: Movie rental without MMF
...
@@ -411,7 +411,7 @@ Feature: Movie rental without MMF
Then there are 10 more left
Then there are 10 more left
"""
"""
FEATURE
18
=
"""
FEATURE
20
=
"""
Feature: My scenarios have no name
Feature: My scenarios have no name
Scenario:
Scenario:
Given this scenario raises a syntax error
Given this scenario raises a syntax error
...
@@ -787,7 +787,7 @@ def test_background_parsing_without_mmf():
...
@@ -787,7 +787,7 @@ def test_background_parsing_without_mmf():
def
test_syntax_error_for_scenarios_with_no_name
():
def
test_syntax_error_for_scenarios_with_no_name
():
(
"Trying to parse features with unnamed "
(
"Trying to parse features with unnamed "
"scenarios will cause a syntax error"
)
"scenarios will cause a syntax error"
)
expect
(
Feature
.
from_string
)
.
when
.
called_with
(
FEATURE
18
)
.
to
.
throw
(
expect
(
Feature
.
from_string
)
.
when
.
called_with
(
FEATURE
20
)
.
to
.
throw
(
LettuceSyntaxError
,
LettuceSyntaxError
,
(
'In the feature "My scenarios have no name", '
(
'In the feature "My scenarios have no name", '
'scenarios must have a name, make sure to declare '
'scenarios must have a name, make sure to declare '
...
...
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