@@ -34,25 +34,24 @@ def test_get_all_projects(self, client):
3434 projects = client .projects .all ()
3535 assert len (projects ) > 0
3636
37- def test_get_project_id (self ,client ):
38- projectName = "Test"
37+ def test_get_project_id (self , client ):
38+ project_name = "Test"
3939 with requests_mock .Mocker () as m :
4040 m .get (f"{ TEST_URL } /codeinsight/api/project/id" , text = '{ "Content: ": 1 }' ) # Yes, the key is called 'Content: ' ...
41- project_id = client .projects .get_id (projectName )
41+ project_id = client .projects .get_id (project_name )
4242 assert project_id == 1
4343
4444 def test_get_project_id_invalid (self ,client ):
45- projectName = "Invalid_Project"
45+ project_name = "Invalid_Project"
4646 fake_response_json = """{ "Arguments: " : ["",""],
4747 "Key: ": " InvalidProjectNameParm",
4848 "Error: ": "The project name entered was not found" }
4949"""
5050 with requests_mock .Mocker () as m :
51- # Note, the key names end with a colon and space '...: '
51+ # Note, the key names end with a colon and space '...: '
5252 m .get (f"{ TEST_URL } /codeinsight/api/project/id" , text = fake_response_json , status_code = 400 )
5353 with pytest .raises (CodeInsightError ):
54- project_id = client .projects .get_id (projectName )
55- assert project_id != 1
54+ client .projects .get_id (project_name )
5655
5756 def test_get_project (self ,client ):
5857 project_id = 1
0 commit comments