Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c1680de

Browse files
committed
increased flexibility of test by adding blank space tolerance
1 parent c2adf7b commit c1680de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎exercises/04-Call-a-function/tests.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def test_call_calculate_area():
4848
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
4949
with open(path, 'r') as content_file:
5050
content = content_file.read()
51-
regex = re.compile(r"=(\s*)calculate_area\(")
51+
regex = re.compile(r"=(\s*)calculate_area\s*\(")
5252
assert bool(regex.search(content)) == True

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /