Skip to content

Commit fda7645

Browse files
committed
Format the signed file URL tests so ruff format --check passes.
1 parent 5119ca3 commit fda7645

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎client-sdk/tests/test_api/test_files.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,12 @@ async def test_download_url(
221221
assert url.startswith(f"{TEST_ENVD_URL}/files?")
222222
assert query["path"] == ["/app/test.txt"]
223223
assert query["signature"][0].startswith("v1_")
224-
assert query["signature"][0] != parse_qs(
225-
urlparse(await files_module.upload_url("/app/test.txt")).query
226-
)["signature"][0]
224+
assert (
225+
query["signature"][0]
226+
!= parse_qs(urlparse(await files_module.upload_url("/app/test.txt")).query)[
227+
"signature"
228+
][0]
229+
)
227230

228231

229232
class TestFilesRename:

‎client-sdk/tests/test_api/test_sandbox.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,12 @@ async def test_get_download_url_signs_read_and_expiration(
647647
expiration = int(query["signature_expiration"][0])
648648
assert expiration >= int(time.time()) + 50
649649
assert query["signature"][0].startswith("v1_")
650-
assert query["signature"][0] != parse_qs(
651-
urlparse(await sandbox.get_upload_url("/app/data.csv")).query
652-
)["signature"][0]
650+
assert (
651+
query["signature"][0]
652+
!= parse_qs(urlparse(await sandbox.get_upload_url("/app/data.csv")).query)["signature"][
653+
0
654+
]
655+
)
653656

654657
@pytest.mark.asyncio
655658
async def test_signed_url_requires_envd_token(self) -> None:

0 commit comments

Comments
 (0)