File tree Expand file tree Collapse file tree
packages/python-sdk/tests
async/sandbox_async/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async def test_get_info_of_file(async_sandbox: AsyncSandbox):
2626async def test_get_info_of_nonexistent_file (async_sandbox : AsyncSandbox ):
2727 filename = "test_does_not_exist.txt"
2828
29- with pytest .raises (NotFoundException ) as exc_info :
29+ with pytest .raises (NotFoundException ):
3030 await async_sandbox .files .get_info (filename )
3131
3232
@@ -53,7 +53,7 @@ async def test_get_info_of_directory(async_sandbox: AsyncSandbox):
5353async def test_get_info_of_nonexistent_directory (async_sandbox : AsyncSandbox ):
5454 dirname = "test_does_not_exist_dir"
5555
56- with pytest .raises (NotFoundException ) as exc_info :
56+ with pytest .raises (NotFoundException ):
5757 await async_sandbox .files .get_info (dirname )
5858
5959
@@ -70,7 +70,7 @@ async def test_file_symlink(async_sandbox: AsyncSandbox):
7070
7171 file = await async_sandbox .files .get_info (symlink_path )
7272
73- pwd = await async_sandbox .commands .run (f "pwd" )
73+ pwd = await async_sandbox .commands .run ("pwd" )
7474 assert file .type == FileType .FILE
7575 assert file .symlink_target == f"{ pwd .stdout .strip ()} /{ file_path } "
7676
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def test_get_info_of_file(sandbox: Sandbox):
2424def test_get_info_of_nonexistent_file (sandbox : Sandbox ):
2525 filename = "test_does_not_exist.txt"
2626
27- with pytest .raises (NotFoundException ) as exc_info :
27+ with pytest .raises (NotFoundException ):
2828 sandbox .files .get_info (filename )
2929
3030
@@ -49,7 +49,7 @@ def test_get_info_of_directory(sandbox: Sandbox):
4949def test_get_info_of_nonexistent_directory (sandbox : Sandbox ):
5050 dirname = "test_does_not_exist_dir"
5151
52- with pytest .raises (NotFoundException ) as exc_info :
52+ with pytest .raises (NotFoundException ):
5353 sandbox .files .get_info (dirname )
5454
5555
@@ -66,7 +66,7 @@ async def test_file_symlink(sandbox: Sandbox):
6666
6767 file = sandbox .files .get_info (test_dir )
6868
69- pwd = sandbox .commands .run (f "pwd" , cwd = test_dir )
69+ pwd = sandbox .commands .run ("pwd" , cwd = test_dir )
7070 assert file .type == FileType .FILE
7171 assert file .symlink_target == f"{ pwd .stdout .strip ()} /{ file_path } "
7272
You can’t perform that action at this time.
0 commit comments