Skip to content

Commit a3b2f02

Browse files
author
Alexandre Vincent
committed
[fix] QA-checks and format
1 parent 905fff6 commit a3b2f02

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

docs/developer/extending.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ Once you have created the models, add the following to your
168168
FIRMWARE_UPGRADER_BUILD_MODEL = "myupgrader.Build"
169169
FIRMWARE_UPGRADER_FIRMWAREIMAGE_MODEL = "myupgrader.FirmwareImage"
170170
FIRMWARE_UPGRADER_DEVICEFIRMWARE_MODEL = "myupgrader.DeviceFirmware"
171-
FIRMWARE_UPGRADER_BATCHUPGRADEOPERATION_MODEL = (
172-
"myupgrader.BatchUpgradeOperation"
173-
)
171+
FIRMWARE_UPGRADER_BATCHUPGRADEOPERATION_MODEL = "myupgrader.BatchUpgradeOperation"
174172
FIRMWARE_UPGRADER_UPGRADEOPERATION_MODEL = "myupgrader.UpgradeOperation"
175173
176174
Substitute ``myupgrader`` with the name you chose in step 1.

openwisp_firmware_upgrader/tests/test_selenium.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,14 @@ def test_batch_upgrade_upgrade_options(self, *args):
220220
# Disable -c flag
221221
self.find_element(
222222
by=By.XPATH,
223-
value='//*[@id="id_upgrade_options_jsoneditor"]/div/div[2]/div/div/div[1]/div/div[1]/label/input',
223+
value='//*[@id="id_upgrade_options_jsoneditor"]'
224+
"/div/div[2]/div/div/div[1]/div/div[1]/label/input",
224225
).click()
225226
# Enable -n flag
226227
self.find_element(
227228
by=By.XPATH,
228-
value='//*[@id="id_upgrade_options_jsoneditor"]/div/div[2]/div/div/div[3]/div/div[1]/label/input',
229+
value='//*[@id="id_upgrade_options_jsoneditor"]'
230+
"/div/div[2]/div/div/div[3]/div/div[1]/label/input",
229231
).click()
230232
# Upgrade all devices
231233
self.find_element(

tests/openwisp2/sample_connection/migrations/0001_initial.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ class Migration(migrations.Migration):
246246
(
247247
"type",
248248
models.CharField(
249-
choices=COMMAND_CHOICES
250-
if django.VERSION < (5, 0)
251-
else get_command_choices,
249+
choices=(
250+
COMMAND_CHOICES
251+
if django.VERSION < (5, 0)
252+
else get_command_choices
253+
),
252254
max_length=16,
253255
),
254256
),

0 commit comments

Comments
 (0)