Skip to content

Commit 03ee9a1

Browse files
committed
fix(test): pin HETA version in E2E test
1 parent 9007e37 commit 03ee9a1

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

tests/aignostics/application/cli_test.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,21 @@ def test_cli_application_dump_schemata(runner: CliRunner, tmp_path: Path, record
211211
"""Check application dump schemata works as expected."""
212212
record_property("tested-item-id", "SPEC-APPLICATION-SERVICE")
213213
result = runner.invoke(
214-
cli, ["application", "dump-schemata", HETA_APPLICATION_ID, "--destination", str(tmp_path), "--zip"]
214+
cli,
215+
[
216+
"application",
217+
"dump-schemata",
218+
HETA_APPLICATION_ID,
219+
"--application-version",
220+
HETA_APPLICATION_VERSION,
221+
"--destination",
222+
str(tmp_path),
223+
"--zip",
224+
],
215225
)
216-
application_version = ApplicationService().application_version(HETA_APPLICATION_ID)
217-
application_version = ApplicationService().application_version(HETA_APPLICATION_ID)
218226
assert result.exit_code == 0
219227
assert "Zipped 11 files" in normalize_output(result.output)
220-
zip_file = sanitize_path(
221-
Path(tmp_path / f"{HETA_APPLICATION_ID}_{application_version.version_number}_schemata.zip")
222-
)
228+
zip_file = sanitize_path(Path(tmp_path / f"{HETA_APPLICATION_ID}_{HETA_APPLICATION_VERSION}_schemata.zip"))
223229
assert zip_file.exists(), f"Expected zip file {zip_file} not found"
224230

225231

0 commit comments

Comments
 (0)