Skip to content

Commit 0c014f1

Browse files
Fix warning from pytest and increase pretty_print coverage
1 parent 5422936 commit 0c014f1

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ markers = [
5454
"kind",
5555
"openshift"
5656
]
57-
timeout = 900

src/codeflare_sdk/utils/pretty_print.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,11 @@ def print_cluster_status(cluster: RayCluster):
7070
)
7171
name = cluster.name
7272
dashboard = cluster.dashboard
73-
# owned = bool(cluster["userOwned"])
74-
owned = True
7573

7674
#'table0' to display the cluster name, status, url, and dashboard link
7775
table0 = Table(box=None, show_header=False)
78-
if owned:
79-
table0.add_row("[white on green][bold]Name")
80-
else:
81-
table0.add_row("")
76+
77+
table0.add_row("[white on green][bold]Name")
8278
table0.add_row("[bold underline]" + name, status)
8379
table0.add_row()
8480
# fixme harcded to default for now
@@ -119,15 +115,11 @@ def print_clusters(clusters: List[RayCluster]):
119115
memory = str(cluster.worker_mem_min) + "~" + str(cluster.worker_mem_max)
120116
cpu = str(cluster.worker_cpu)
121117
gpu = str(cluster.worker_gpu)
122-
# owned = bool(cluster["userOwned"])
123-
owned = True
124118

125119
#'table0' to display the cluster name, status, url, and dashboard link
126120
table0 = Table(box=None, show_header=False)
127-
if owned:
128-
table0.add_row("[white on green][bold]Name")
129-
else:
130-
table0.add_row("")
121+
122+
table0.add_row("[white on green][bold]Name")
131123
table0.add_row("[bold underline]" + name, status)
132124
table0.add_row()
133125
# fixme harcded to default for now

0 commit comments

Comments
 (0)