@@ -17,8 +17,8 @@ def test_create_project(self, client):
1717 response = client .post ('/projects' , json = self .valid_data )
1818 assert response .status_code == 201
1919
20- # response = client.post('/projects')
21- # assert response.status_code == 400
20+ response = client .post ('/projects' )
21+ assert response .status_code == 400
2222
2323 def test_update_project (self , client ):
2424
@@ -85,13 +85,17 @@ def test_update_project_link(self, client):
8585
8686 url = '/projects/{0}/links/{1}'
8787
88- # notice: this shouldn't give 500 error
89- # response = client.post(url.format(p1["id"], 0))
90- # assert response.status_code == 404
88+ response = client .put (url .format (p1 ["id" ], 0 ), json = {"name" : "NLink" })
89+ assert response .status_code == 404
90+
91+ response = client .put (url .format (p1 ["id" ], 0 ))
92+ assert response .status_code == 400
9193
92- # notice: this shouldn't give 500 error
93- # response = client.post(url.format(0, p1_link["id"]))
94- # assert response.status_code == 404
94+ response = client .put (url .format (0 , p1_link ["id" ]), json = {"name" : "NLink" })
95+ assert response .status_code == 404
96+
97+ response = client .put (url .format (0 , p1_link ["id" ]))
98+ assert response .status_code == 400
9599
96100 response = client .put (url .format (p1 ["id" ], p1_link ["id" ]), json = {"name" : "Nlink" })
97101 assert response .status_code == 200
0 commit comments