File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exercises/03-Print-Variables-In-The-Console Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88import re
99path = os .path .dirname (os .path .abspath (__file__ ))+ '/app.py'
1010
11- @pytest .mark .it (" Create a variable named ' color' with the string value red" )
11+ @pytest .mark .it (' Create a variable named " color" with the string value " red"' )
1212def test_declare_variable ():
1313 result = app .color
1414 assert result == "red"
1515
16- @pytest .mark .it ('Print on the console the value of the variable ' )
16+ @pytest .mark .it ('Print on the console the value of the variable' )
1717def test_for_printing_variable ():
1818
1919 with open (path , 'r' ) as content_file :
@@ -24,4 +24,4 @@ def test_for_printing_variable():
2424@pytest .mark .it ('The printed value on the console should be "red"' )
2525def test_for_file_output (capsys ):
2626 captured = buffer .getvalue ()
27- assert "red\n " in captured
27+ assert "red\n " in captured
You can’t perform that action at this time.
0 commit comments