Skip to content

Commit

Permalink
[@adrilene/@denisousa] Issue #73 - Correção testes de itens.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrilene committed Jun 29, 2020
1 parent ca48201 commit 865efa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/items_many/test_items_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_put_items_has_not_required_fields(self):
headers={"Content-Type": "application/json"},
data=payload_post)

payload = copy.deepcopy(self.mock_items['sem_obrigatorios'])
payload = copy.deepcopy(self.mock_items['sem_um_obrigatorio'])
id = response.json['content'][0]
payload['_id'] = id
payload = json.dumps({'content': [payload]})
Expand Down
2 changes: 1 addition & 1 deletion tests/items_many/test_items_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_items_body_no_required_fields(self):
response = self.client.post(
'/v2/items',
headers={"Content-Type": "application/json"},
data={'content': [self.mock_items['sem_obrigatorios']]})
data={'content': [self.mock_items['sem_um_obrigatorio']]})
self.assertEqual(response.status_code, 400)

def test_items_valid_body(self):
Expand Down

0 comments on commit 865efa8

Please sign in to comment.