Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Create 'math_mutiply' endpoints #40

Closed
wants to merge 12 commits into from
Closed

Create 'math_mutiply' endpoints #40

wants to merge 12 commits into from

Conversation

Qebuqci
Copy link

@Qebuqci Qebuqci commented Mar 21, 2019

Summary

math_multiply_20:
-Create 'src/math_services.py'
-Create 'test/math_services.py'
-Modify 'main.py'

Checklist

  • All tests are successful.
  • There are no linter errors.
  • [X ] All new features are documented.
  • All new features have regression tests.
  • [ X] All dependencies are listed on requirements.txt.
  • [ X] This branch is up-to-date with respect to external.
  • The test coverage is greater or equal to that of external.

Related Issue

Closes #20

Notes to Reviewer

...

@Qebuqci Qebuqci added the enhancement New feature or request label Mar 21, 2019
@Qebuqci Qebuqci added this to the Sprint 1 milestone Mar 21, 2019
@Qebuqci Qebuqci self-assigned this Mar 21, 2019
Copy link
Collaborator

@neumannrf neumannrf left a 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
Copy link
Collaborator

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():
Copy link
Collaborator

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]
Copy link
Collaborator

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.

@neumannrf neumannrf closed this May 13, 2020
@neumannrf neumannrf deleted the math_multiply_20 branch May 13, 2020 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create /math/multiply resource
2 participants