File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import textwrap
4
4
5
- FEATURE = ''' \
5
+ FEATURE = """ \
6
6
Feature: Background support
7
7
8
8
Background:
9
9
Given foo has a value "bar"
10
10
And a background step with multiple lines:
11
- "" "
11
+ \" \" \ "
12
12
one
13
13
two
14
- "" "
14
+ \" \" \ "
15
15
16
16
17
17
Scenario: Basic usage
23
23
24
24
Then foo should have value "dummy"
25
25
And foo should not have value "bar"
26
- '''
26
+ """
27
27
28
28
STEPS = r"""\
29
29
import re
Original file line number Diff line number Diff line change 4
4
5
5
6
6
def test_parser ():
7
- # Get the directory of the current file
8
7
test_dir = Path (__file__ ).parent
9
-
10
- # Resolve the path to the feature file relative to the test directory
11
8
feature_file = test_dir / "test.feature"
12
-
13
- # Convert to string if necessary, but Path objects are often used directly
14
9
feature_file_path = str (feature_file .resolve ())
15
10
16
11
get_gherkin_document (feature_file_path )
You can’t perform that action at this time.
0 commit comments