Skip to content

Commit 80110dd

Browse files
committed
test: limit list operation in CLI test
1 parent d24c285 commit 80110dd

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tests/aignostics/application/cli_test.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from aignostics.application import Service as ApplicationService
1919
from aignostics.cli import cli
20+
from aignostics.platform import LIST_APPLICATION_RUNS_MAX_PAGE_SIZE
2021
from aignostics.utils import Health, sanitize_path
2122
from tests.conftest import normalize_output, print_directory_structure
2223
from tests.constants_test import (
@@ -516,6 +517,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
516517
"list",
517518
"--query",
518519
"note_of_this_complex_test",
520+
"--limit",
521+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
519522
],
520523
)
521524
assert list_result.exit_code == 0
@@ -531,6 +534,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
531534
"list",
532535
"--query",
533536
"test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
537+
"--limit",
538+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
534539
],
535540
)
536541
assert list_result.exit_code == 0
@@ -546,6 +551,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
546551
"list",
547552
"--query",
548553
"another_tag",
554+
"--limit",
555+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
549556
],
550557
)
551558
assert list_result.exit_code == 0
@@ -561,6 +568,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
561568
"list",
562569
"--note-regex",
563570
"note_of_this_complex_test",
571+
"--limit",
572+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
564573
],
565574
)
566575
assert list_result.exit_code == 0
@@ -576,6 +585,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
576585
"list",
577586
"--note-regex",
578587
"other_note",
588+
"--limit",
589+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
579590
],
580591
)
581592
assert list_result.exit_code == 0
@@ -591,6 +602,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
591602
"list",
592603
"--tags",
593604
"test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
605+
"--limit",
606+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
594607
],
595608
)
596609
assert list_result.exit_code == 0
@@ -606,6 +619,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
606619
"list",
607620
"--tags",
608621
"other-tag",
622+
"--limit",
623+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
609624
],
610625
)
611626
assert list_result.exit_code == 0
@@ -621,6 +636,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
621636
"list",
622637
"--tags",
623638
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
639+
"--limit",
640+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
624641
],
625642
)
626643
assert list_result.exit_code == 0
@@ -636,6 +653,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
636653
"list",
637654
"--tags",
638655
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag",
656+
"--limit",
657+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
639658
],
640659
)
641660
assert list_result.exit_code == 0
@@ -651,6 +670,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
651670
"list",
652671
"--tags",
653672
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag,non-existing-tag",
673+
"--limit",
674+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
654675
],
655676
)
656677
assert list_result.exit_code == 0
@@ -668,6 +689,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
668689
"note_of_this_complex_test",
669690
"--tags",
670691
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag",
692+
"--limit",
693+
LIST_APPLICATION_RUNS_MAX_PAGE_SIZE,
671694
],
672695
)
673696
assert list_result.exit_code == 0

0 commit comments

Comments
 (0)