Format with Ruff.

This commit is contained in:
Silcantar
2026-09-14 15:39:21 -05:00
parent 50a81c3a5c
commit bcdd674c4e
9 changed files with 134 additions and 206 deletions

View File

@@ -2,22 +2,28 @@ import unittest
from AuDaGe.audage_frame import AuDaGeFrame
class TestAuDaGeFrame(unittest.TestCase):
def test_init(self):
valid_adf = AuDaGeFrame({
"name": ["a", "b", "c"],
"type": ["d", "e", "f"],
"address": [1, 2, 3],
"comment": ["g", "h", "i"]
})
valid_adf = AuDaGeFrame(
{
"name": ["a", "b", "c"],
"type": ["d", "e", "f"],
"address": [1, 2, 3],
"comment": ["g", "h", "i"],
}
)
self.assertTrue(valid_adf.is_valid())
invalid_adf = AuDaGeFrame({
"name": ["a", "b", "c"],
# "type": ["d", "e", "f"],
"address": [1, 2, 3],
"comment": ["g", "h", "i"]
})
invalid_adf = AuDaGeFrame(
{
"name": ["a", "b", "c"],
# "type": ["d", "e", "f"],
"address": [1, 2, 3],
"comment": ["g", "h", "i"],
}
)
self.assertFalse(invalid_adf.is_valid())
if __name__ == "__main__":
unittest.main(failfast=True)
unittest.main(failfast=True)