Skip to content

Commit a2fc0ce

Browse files
committed
Fix update project test
1 parent 56919cc commit a2fc0ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/api/views/test_projectView.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ def test_update_project(self, client):
2626
response = client.put('/projects/0', json={'name': 'Updated PB'})
2727
assert response.status_code == 404
2828

29-
project_id = create_project_for_test_cases(self.valid_data)
30-
response = client.post('/projects/{}'.format(project_id), json={'description': 'updated desc'})
29+
project_id = create_project_for_test_cases(self.valid_data)['id']
30+
response = client.put('/projects/{}'.format(project_id), json={'description': 'updated desc'})
31+
assert response.status_code == 200
3132
project = Project.query.filter_by(id=project_id).first()
3233
assert project.description == 'updated desc'
3334

0 commit comments

Comments
 (0)