def test_supported_devices(): cfpa_devices = CFPA.devices() cmpa_devices = CMPA.devices() assert sorted(cmpa_devices) == sorted(cfpa_devices)
def test_cli_devices_global(): """Test PFR CLI - devices from global space.""" runner = CliRunner() result = runner.invoke(spsdk_apps.main, ["pfr", "devices"]) for device in CMPA.devices(): assert device in result.stdout
def test_cli_devices(): """Test PFR CLI - devices.""" runner = CliRunner() result = runner.invoke(cli.main, ["devices"]) for device in CMPA.devices(): assert device in result.stdout
def test_supported_devices(): """Test PFR tool - Getting supported devices.""" cfpa_devices = CFPA.devices() cmpa_devices = CMPA.devices() assert sorted(cmpa_devices) == sorted(cfpa_devices)
def test_cli_devices_global(): runner = CliRunner() result = runner.invoke(spsdk_apps.main, ['pfr', 'devices']) for device in CMPA.devices(): assert device in result.stdout
def test_cli_devices(): runner = CliRunner() result = runner.invoke(cli.main, ['devices']) for device in CMPA.devices(): assert device in result.stdout