semaphoreui-client 0.1.18__tar.gz → 0.1.19__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: semaphoreui-client
3
- Version: 0.1.18
3
+ Version: 0.1.19
4
4
  Summary: An api client for interacting with Semaphore UI
5
5
  Project-URL: Documentation, https://github.com/rockstar/semaphoreui-client#readme
6
6
  Project-URL: Issues, https://github.com/rockstar/semaphoreui-client/issues
@@ -0,0 +1 @@
1
+ __version__ = "0.1.19"
@@ -565,12 +565,12 @@ class SemaphoreUIClient:
565
565
  )
566
566
  assert response.status_code == 204
567
567
 
568
- def get_project_task_output(self, project_id: int, id: int) -> str:
568
+ def get_project_task_output(self, project_id: int, id: int) -> typing.List[str]:
569
569
  response = self.http.get(
570
570
  f"{self.api_endpoint}/project/{project_id}/tasks/{id}/output"
571
571
  )
572
572
  assert response.status_code == 200
573
- return "\n".join(data["output"] for data in response.json())
573
+ return [data["output"] for data in response.json()]
574
574
 
575
575
 
576
576
  @dataclass
@@ -1043,5 +1043,5 @@ class Task:
1043
1043
  def delete(self) -> None:
1044
1044
  self.client.delete_project_task(self.project_id, self.id)
1045
1045
 
1046
- def output(self) -> str:
1046
+ def output(self) -> typing.List[str]:
1047
1047
  return self.client.get_project_task_output(self.project_id, self.id)
@@ -1 +0,0 @@
1
- __version__ = "0.1.18"