Skip to content

Commit

Permalink
remove useless print
Browse files Browse the repository at this point in the history
  • Loading branch information
natthan-pigoux committed Nov 8, 2023
1 parent e8b5558 commit 06947eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/routers/jobs/test_sandboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_upload_oversized(normal_user_client: TestClient):
"""


def test_get_sandbox_from_job(normal_user_client: TestClient):
def test_assign_sandbox_to_job(normal_user_client: TestClient):
data = secrets.token_bytes(512)
checksum = hashlib.sha256(data).hexdigest()

Expand All @@ -127,12 +127,9 @@ def test_get_sandbox_from_job(normal_user_client: TestClient):
r = normal_user_client.post("/api/jobs/", json=job_definition)
assert r.status_code == 200, r.json()[0]["JobID"]
job_id = r.json()[0]["JobID"]
print(f"JobID: {job_id}")
print(f"SB: {sandbox_pfn}")

# Getting job sb, should failed:
r = normal_user_client.get(f"/api/jobs/{job_id}/sandbox")
print(f"Get1: {r.json()}")
assert r.status_code == 404

# Assign sb to job:
Expand All @@ -143,8 +140,7 @@ def test_get_sandbox_from_job(normal_user_client: TestClient):
"sb_type": "Output",
},
)
print(f"Assign: {r.json()}")
# assert r.status_code == 200
assert r.status_code == 200

# Get the sb again:
r = normal_user_client.get(f"/api/jobs/{job_id}/sandbox")
Expand Down

0 comments on commit 06947eb

Please sign in to comment.