Skip to content

Commit ee0226b

Browse files
committed
🧪 Fix tests
1 parent b482350 commit ee0226b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ def testing_exit(status: int) -> None:
2727
_setup_run = setup_test_run(run, True, request)
2828
yield run, _setup_run
2929

30-
# Then yield it closed
31-
yield run, _setup_run
32-
3330

3431
def setup_test_run(run: sv_run.Run, create_objects: bool, request: pytest.FixtureRequest):
3532
fix_use_id: str = str(uuid.uuid4()).split('-', 1)[0]

tests/test_command_line_interface.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,10 @@ def test_tag(create_plain_run: tuple[simvue.Run, dict]) -> None:
331331
[
332332
"tag",
333333
"create",
334-
"--color='cyan'",
335-
"--description='CLI test tag'",
334+
"--color",
335+
"cyan",
336+
"--description",
337+
"CLI test tag",
336338
"simvue_cli_test",
337339
],
338340
catch_exceptions=False
@@ -345,6 +347,8 @@ def test_tag(create_plain_run: tuple[simvue.Run, dict]) -> None:
345347
"tag",
346348
"list",
347349
"--name",
350+
"--count",
351+
100,
348352
"--created",
349353
"--color",
350354
"--enumerate",
@@ -353,9 +357,7 @@ def test_tag(create_plain_run: tuple[simvue.Run, dict]) -> None:
353357
catch_exceptions=False
354358
)
355359
assert result.exit_code == 0, result.output
356-
for tag in run_data["tags"]:
357-
assert tag in result.output
358-
assert _id in result.output
360+
assert "simvue_cli_test" in result.output
359361
result = runner.invoke(
360362
sv_cli.simvue,
361363
[
@@ -399,7 +401,7 @@ def test_artifact_list(create_test_run: tuple[simvue.Run, dict]) -> None:
399401
"--size",
400402
"--storage",
401403
"--mime-type",
402-
"--count=20",
404+
"--count=100",
403405
"--enumerate",
404406
"--format=simple"
405407
],

0 commit comments

Comments
 (0)