Skip to content

Commit 7dbe72b

Browse files
committed
SCP-4 tests busted
1 parent fabebb5 commit 7dbe72b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

skylab_studio/studio_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def _api_request(self, endpoint, http_method, **kwargs):
160160
}
161161
return formatted_response
162162

163+
print('RETURNING RESPONSE JSON')
163164
return response.json()
164-
165+
165166
###### JOB ENDPOINTS ######
166167

167168
def list_jobs(self):

test/test_api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ def test_create_job(api):
5555
'profile_id': 24
5656
}
5757

58+
print('yooooOOooOooo')
5859
result = api.create_job(payload=job_payload)
60+
print('PRINTING', result)
5961
global job_id
6062

61-
job_id = result['id']
63+
# job_id = result['id']
6264
assert job_id is not None
6365
assert result is not None
6466

@@ -76,7 +78,7 @@ def test_update_job(api):
7678
'name': new_job_name
7779
}
7880
result = api.update_job(job_id, payload=payload)
79-
assert result['name'] is new_job_name
81+
assert result['name'] == new_job_name
8082

8183
def test_cancel_job(api):
8284
job_name = str(uuid.uuid4())
@@ -154,7 +156,7 @@ def test_update_profile(api):
154156
'description': 'a description!'
155157
}
156158
result = api.update_profile(profile_id, payload=payload)
157-
assert result['name'] is new_profile_name
159+
assert result['name'] == new_profile_name
158160

159161
def test_get_photo(api):
160162
global photo_id

0 commit comments

Comments
 (0)