We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4267215 + 06601c8 commit c989cc9Copy full SHA for c989cc9
exercises/04-Multiply-Two-Values/test.py
@@ -32,3 +32,10 @@ def test_for_print():
32
# makes sure we are calling print function with a variable and not the hard coded value
33
regex = re.compile(r"print\s*\(\s*variables_are_cool\s*\)")
34
assert bool(regex.search(content)) == True
35
+
36
+@pytest.mark.it('You should not hardcode the result')
37
+def test_for_print():
38
+ with open(path, 'r') as content_file:
39
+ content = content_file.read()
40
+ # makes sure we are calling print function with a variable and not the hard coded value
41
+ assert str(17172435) not in content
0 commit comments