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 9e64e1f

Browse files
Merge pull request #37 from tommygonzaleza/issue-244
Issue #244
2 parents 6215141 + 7be0bc4 commit 9e64e1f

File tree

3 files changed

+10
-30
lines changed

3 files changed

+10
-30
lines changed

‎exercises/18-The-Beatles/README.es.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,8 @@ Este es el coro de una de las canciones más famosas de la banda:
1919

2020
## Resultado esperado:
2121

22-
```sh
23-
let it be,
24-
let it be,
25-
let it be,
26-
let it be,
27-
whisper words of wisdom, let it be, let it be,
28-
let it be,
29-
let it be,
30-
let it be,
31-
there will be an answer, let it be
32-
```
22+
`let it be, let it be, let it be, let it be, whisper words of wisdom, let it be, let it be, let it be, let it be, let it be, there will be an answer, let it be`
23+
3324

3425
## 💡 Pista:
3526

‎exercises/18-The-Beatles/README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,9 @@ This is the chorus of one of the most famous Beatle songs:
2222
[you can hear from the 3:10 sec to the end of the song at 3:54 sec](https://www.youtube.com/watch?v=QDYfEBY9NM4).
2323

2424

25-
## Expected result:
26-
27-
```sh
28-
let it be,
29-
let it be,
30-
let it be,
31-
let it be,
32-
whisper words of wisdom, let it be, let it be,
33-
let it be,
34-
let it be,
35-
let it be,
36-
there will be an answer, let it be
37-
```
25+
## Expected output:
26+
27+
`let it be, let it be, let it be, let it be, whisper words of wisdom, let it be, let it be, let it be, let it be, let it be, there will be an answer, let it be`
3828

3929
## 💡 Hint:
4030

‎exercises/18-The-Beatles/test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
sys.stdout = buffer = io.StringIO()
44

55
# from app import my_function
6-
from app import sing
76
import pytest
87
import app
98
import re
@@ -12,12 +11,12 @@
1211
@pytest.mark.it("You should declare a function named sing and call it in the correct way")
1312
def test_function_sing_exists(app):
1413
try:
15-
app.sing
14+
assertapp.sing
1615
except AttributeError:
1716
raise AttributeError("The function 'sing' should exist on app.py")
1817

19-
@pytest.mark.it('Your function needs to print the correct output')
20-
def test_for_function_output(capsys):
21-
sing()
18+
@pytest.mark.it("The function sing, should print the correct string in the console")
19+
def test_for_file_output(capsys, app):
20+
app.sing()
2221
captured = capsys.readouterr()
23-
assert captured.out.lower() == "let it be,\nlet it be,\nlet it be,\nlet it be,\nwhisper words of wisdom, let it be, let it be,\nlet it be,\nlet it be,\nlet it be,\nthere will be an answer, let it be\n".lower()
22+
assert captured.out == "let it be, let it be, let it be, let it be, whisper words of wisdom, let it be, let it be, let it be, let it be, let it be, there will be an answer, let it be\n"

0 commit comments

Comments
(0)

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