Test/assemblers/assertImageFile: don't set default argument values
Do not specify the default value for 'expected_size' argument in assertImageFile() function declaration. Previously, it was set to `None`, which was never taken into account. Moreover, all callers of the function always provide an explicit value, so the default was never really used. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
ff6b96bee5
commit
d9e97a4830
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def osbuild_fixture():
|
|||
yield test.OSBuild()
|
||||
|
||||
|
||||
def assertImageFile(filename, fmt, expected_size=None):
|
||||
def assertImageFile(filename, fmt, expected_size):
|
||||
info = json.loads(subprocess.check_output(["qemu-img", "info", "--output", "json", filename]))
|
||||
assert info["format"] == fmt
|
||||
assert info["virtual-size"] == expected_size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue