Skip to content

Commit 51fcf6f

Browse files
committed
Another Python style fixes
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent cc41cb3 commit 51fcf6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration_tests/functional/test_drives.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_rescan_dev(test_microvm_with_ssh, network_config):
6262
"""Verify that rescan works with a device-backed virtio device."""
6363
test_microvm = test_microvm_with_ssh
6464
test_microvm.spawn()
65+
session = test_microvm.api_session
6566

6667
# Set up the microVM with 1 vCPUs, 256 MiB of RAM, 0 network ifaces and
6768
# a root file system with the rw permission. The network interface is
@@ -78,7 +79,7 @@ def test_rescan_dev(test_microvm_with_ssh, network_config):
7879
is_root_device=False,
7980
is_read_only=False
8081
)
81-
assert test_microvm.api_session.is_status_no_content(response.status_code)
82+
assert session.is_status_no_content(response.status_code)
8283

8384
test_microvm.start()
8485

@@ -100,14 +101,13 @@ def test_rescan_dev(test_microvm_with_ssh, network_config):
100101
drive_id='scratch',
101102
path_on_host=test_microvm.create_jailed_resource(loopback_device),
102103
)
103-
assert test_microvm.api_session.is_status_no_content(response.status_code)
104+
assert session.is_status_no_content(response.status_code)
104105

105106
_check_scratch_size(ssh_connection, fs2.size())
106107
finally:
107108
run(['losetup', '-d', loopback_device], check=True)
108109

109110

110-
111111
def test_non_partuuid_boot(test_microvm_with_ssh, network_config):
112112
"""Test the output reported by blockdev when booting from /dev/vda."""
113113
test_microvm = test_microvm_with_ssh

0 commit comments

Comments
 (0)