Coverage for tests/first_test.py: 100%
6 statements
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-07 05:08 +0000
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-07 05:08 +0000
1# This file is part of the Apio project
2# (C) 2016-present FPGAwars
3# Project authors:
4# * Jesús Arroyo (Jesus89) (2016-2019)
5# * Juan Gonzalez (obijuan) (2019-2024)
6# * The Apio Team (2024-present)
7# License: GPLv2
9"""A pseudo test that runs first and fill in the packages cache if needed.
10It is not required but provide a better indication to the user if the
11package loading pauses the tests for a few seconds.
12"""
14from tests.conftest import ApioRunner
15from apio.commands.apio import apio_top_cli as apio
18def test_fill_packages_cache(apio_runner: ApioRunner):
19 """Fill the packages cache."""
21 with apio_runner.in_sandbox() as sb:
23 # -- Execute "apio packages"
24 result = sb.invoke_apio_cmd(apio, ["packages", "install"])
25 sb.assert_result_ok(result)