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 8
8
import re
9
9
path = os .path .dirname (os .path .abspath (__file__ ))+ '/app.py'
10
10
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"' )
12
12
def test_declare_variable ():
13
13
result = app .color
14
14
assert result == "red"
15
15
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' )
17
17
def test_for_printing_variable ():
18
18
19
19
with open (path , 'r' ) as content_file :
@@ -24,4 +24,4 @@ def test_for_printing_variable():
24
24
@pytest .mark .it ('The printed value on the console should be "red"' )
25
25
def test_for_file_output (capsys ):
26
26
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