Coverage for tests/first_test.py: 100%
6 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-06 10:20 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-06 10:20 +0000
1"""A pseudo test that runs first and fill in the packages cache if needed.
2It is not required but provide a better indication to the user if the
3package loading pauses the tests for a few seconds.
4"""
6from tests.conftest import ApioRunner
7from apio.commands.apio import apio_top_cli as apio
10def test_fill_packages_cache(apio_runner: ApioRunner):
11 """Fill the packages cache."""
13 with apio_runner.in_sandbox() as sb:
15 # -- Execute "apio packages"
16 result = sb.invoke_apio_cmd(apio, ["packages", "update"])
17 sb.assert_result_ok(result)