Skip to content

Commit c3008c1

Browse files
committed
Couple of tidy ups
1 parent 2c8455b commit c3008c1

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

tests/feature/test_background.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
import textwrap
44

5-
FEATURE = '''\
5+
FEATURE = """\
66
Feature: Background support
77
88
Background:
99
Given foo has a value "bar"
1010
And a background step with multiple lines:
11-
"""
11+
\"\"\"
1212
one
1313
two
14-
"""
14+
\"\"\"
1515
1616
1717
Scenario: Basic usage
@@ -23,7 +23,7 @@
2323
2424
Then foo should have value "dummy"
2525
And foo should not have value "bar"
26-
'''
26+
"""
2727

2828
STEPS = r"""\
2929
import re

tests/parser/test_parser.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44

55

66
def test_parser():
7-
# Get the directory of the current file
87
test_dir = Path(__file__).parent
9-
10-
# Resolve the path to the feature file relative to the test directory
118
feature_file = test_dir / "test.feature"
12-
13-
# Convert to string if necessary, but Path objects are often used directly
149
feature_file_path = str(feature_file.resolve())
1510

1611
get_gherkin_document(feature_file_path)

0 commit comments

Comments
 (0)