Skip to content

Commit

Permalink
black 24.1.1 formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
plars committed Feb 1, 2024
1 parent 5adaab1 commit dc0b0ef
Show file tree
Hide file tree
Showing 22 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class CM3:

"""Device Connector for CM3."""

IMAGE_PATH_IDS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning Dell OEM devices with an oem image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


class Dragonboard:

"""Testflinger Device Connector for Dragonboard."""

def __init__(self, config, job_data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning HP OEM devices with an oem image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning Lenovo OEM devices with an oem image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@


class Maas2:

"""Device Connector for Maas2."""

def __init__(self, config, job_data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class DeviceConnector(DefaultDevice):

"""Device Connector for provisioning multiple devices at the same time"""

def init_device(self, args):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@


class Multi:

"""Device Connector for multi-device"""

def __init__(self, config, job_data, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


class MuxPi:

"""Device Connector for MuxPi."""

IMAGE_PATH_IDS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@


class Netboot:

"""Testflinger Device Connector for Netboot."""

def __init__(self, config):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@


class Noprovision:

"""Testflinger Device Connector for Noprovision."""

def __init__(self, config):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@


class OemRecovery:

"""Device Connector for OEM Recovery."""

def __init__(self, config, job_data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@


class DeviceConnector(DefaultDevice):

"""Tool for provisioning baremetal with a given image."""

@catch(RecoveryError, 46)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Device class for flashing firmware on device supported by LVFS-fwupd"""


import subprocess
import json
import time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test LVFSDevice"""


import unittest
import json
from unittest.mock import patch
Expand Down Expand Up @@ -93,9 +92,9 @@ def test_check_results_good(self):
device = LVFSDevice("", "", "")
device._parse_fwupd_raw(fwupd_data.GET_DEVICES_RESPONSE_DATA)
device_results = json.loads(fwupd_data.GET_RESULTS_RESPONSE_DATA)
device_results[
"UpdateState"
] = FwupdUpdateState.FWUPD_UPDATE_STATE_SUCCESS.value
device_results["UpdateState"] = (
FwupdUpdateState.FWUPD_UPDATE_STATE_SUCCESS.value
)
device_results["Releases"][0]["Version"] = "2.90"
device.fw_info[2]["targetVersion"] = "2.90"
self.assertTrue(device.check_results())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test detect_device in firmware_update.py"""


import unittest
import pytest
from unittest.mock import patch
Expand Down

0 comments on commit dc0b0ef

Please sign in to comment.