Delete a source Args: source_id (str): ID of the source
(self, source_id: str)
| 1320 | return [Source(**source) for source in response.json()] |
| 1321 | |
| 1322 | def delete_source(self, source_id: str): |
| 1323 | """ |
| 1324 | Delete a source |
| 1325 | |
| 1326 | Args: |
| 1327 | source_id (str): ID of the source |
| 1328 | """ |
| 1329 | response = requests.delete(f"{self.base_url}/{self.api_prefix}/sources/{str(source_id)}", headers=self.headers) |
| 1330 | assert response.status_code == 200, f"Failed to delete source: {response.text}" |
| 1331 | |
| 1332 | def get_job(self, job_id: str) -> Job: |
| 1333 | response = requests.get(f"{self.base_url}/{self.api_prefix}/jobs/{job_id}", headers=self.headers) |
no test coverage detected