Coverage for tests/unit_tests/commands/test_apio_drivers.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-06 10:20 +0000

1"""Test for the "apio drivers" command.""" 

2 

3from tests.conftest import ApioRunner 

4from apio.common.apio_console import cunstyle 

5from apio.commands.apio import apio_top_cli as apio 

6 

7 

8def test_drivers(apio_runner: ApioRunner): 

9 """Test "apio drivers" """ 

10 

11 with apio_runner.in_sandbox() as sb: 

12 

13 # -- Execute "apio drivers" 

14 result = sb.invoke_apio_cmd(apio, ["drivers"]) 

15 sb.assert_result_ok(result) 

16 assert "apio drivers install" in cunstyle(result.output) 

17 assert "apio drivers uninstall" in cunstyle(result.output)