]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
fmt
authorbrentru <brent@adafruit.com>
Tue, 21 May 2024 17:52:54 +0000 (13:52 -0400)
committerbrentru <brent@adafruit.com>
Tue, 21 May 2024 17:52:54 +0000 (13:52 -0400)
tests/test_generic_agnostic_board_analogio.py
tests/test_generic_agnostic_board_i2c.py

index 07c8424ced2039613d0f7385047830b3fea2a586..c1ff84e4bd8c7eebb6f61837ce316e80ce4db00e 100644 (file)
@@ -5,6 +5,7 @@ import pytest
 import board
 import analogio
 
+
 # Analog Outputs
 def test_Ax_OUTPUT():
     """Test analog output pin functionality."""
@@ -102,7 +103,6 @@ def test_Ax_INPUT_WAVE_SINE():
     for i, expected_value in enumerate(sine_wave):
         assert pin_sine_wave.value == expected_value
 
-
     # Run through the sine wave again to ensure it loops back correctly
     for i, expected_value in enumerate(sine_wave):
         assert pin_sine_wave.value == expected_value
@@ -123,5 +123,4 @@ def test_Ax_INPUT_WAVE_SAW():
     for i in range(len(sawtooth_wave)):
         assert pin_saw_wave.value == sawtooth_wave[i]
 
-
     pin_saw_wave.deinit()
index 6a3b5b9deb20d0fed5a617dab6324e0105c9deca..abb9e08199d602b005305e2eabb6d4b7d75b27ed 100644 (file)
@@ -1,10 +1,11 @@
 # SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries
 #
 # SPDX-License-Identifier: MIT
-import pytest # pylint: disable=unused-import
+import pytest  # pylint: disable=unused-import
 import busio
 from board import SCL, SDA
 
+
 def test_i2c_scan_random():
     i2c = busio.I2C(SCL, SDA)
     i2c.try_lock()