-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Após a correção dos erros do flake8
linter e da solução dos conflitos identificados pelo GitHub, ainda tem uma correção a fazer. Ao clicar na aba Files changed do seu PR, você notará o serviço double_list()
foi deletado indevidamente.
integer_list.extend(doubled_list) | ||
return integer_list | ||
integer_list.extend(multiplied_list) | ||
return integer_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A falta de um linha em branco no final deste arquivo está gerando o erro src/math_services.py:22:24: W292 no newline at end of file
.
@@ -7,3 +7,15 @@ def test_double_list(): | |||
assert ms.double_list([2]) == [4] | |||
assert ms.double_list([1, 2]) == [2, 4] | |||
assert ms.double_list([1, 2, 3]) == [2, 4, 6] | |||
|
|||
def test_multiply_list(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O flake8
espera encontrar 2 linhas em branco entre uma função e a outra, gerando o erro test/math_test.py:11:1: E302 expected 2 blank lines, found 1
.
assert ms.multiply_list([1, 2], 2) == [2, 4] | ||
assert ms.multiply_list([1, 2, 3], 0) == [0, 0, 0] | ||
assert ms.multiply_list([1, 2, 3], 1) == [1, 2, 3] | ||
assert ms.multiply_list([1, 2, 3], 2) == [2, 4, 6] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A falta de um linha em branco no final deste arquivo está gerando o erro test/math_test.py:21:55: W292 no newline at end of file
.
Summary
math_multiply_20:
-Create 'src/math_services.py'
-Create 'test/math_services.py'
-Modify 'main.py'
Checklist
requirements.txt
.external
.external
.Related Issue
Closes #20
Notes to Reviewer
...