mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-06-22 19:14:49 +02:00
Linting...
This commit is contained in:
+2
-2
@@ -932,8 +932,8 @@ class TestMaintenanceEndpoint:
|
||||
from app.routers.packets import MaintenanceRequest, run_maintenance
|
||||
|
||||
ts = int(time.time())
|
||||
linked_1, _ = await RawPacketRepository.create(b"\x0A\x0B\x0C", ts)
|
||||
linked_2, _ = await RawPacketRepository.create(b"\x0D\x0E\x0F", ts)
|
||||
linked_1, _ = await RawPacketRepository.create(b"\x0a\x0b\x0c", ts)
|
||||
linked_2, _ = await RawPacketRepository.create(b"\x0d\x0e\x0f", ts)
|
||||
await RawPacketRepository.mark_decrypted(linked_1, 201)
|
||||
await RawPacketRepository.mark_decrypted(linked_2, 202)
|
||||
|
||||
|
||||
@@ -699,9 +699,7 @@ class TestMigration020:
|
||||
await conn.execute(
|
||||
"CREATE TABLE raw_packets (id INTEGER PRIMARY KEY, data BLOB NOT NULL)"
|
||||
)
|
||||
await conn.execute(
|
||||
"CREATE TABLE messages (id INTEGER PRIMARY KEY, text TEXT NOT NULL)"
|
||||
)
|
||||
await conn.execute("CREATE TABLE messages (id INTEGER PRIMARY KEY, text TEXT NOT NULL)")
|
||||
await conn.commit()
|
||||
|
||||
# Verify defaults before migration
|
||||
@@ -738,9 +736,7 @@ class TestMigration020:
|
||||
await conn.execute(
|
||||
"CREATE TABLE raw_packets (id INTEGER PRIMARY KEY, data BLOB NOT NULL)"
|
||||
)
|
||||
await conn.execute(
|
||||
"CREATE TABLE messages (id INTEGER PRIMARY KEY, text TEXT NOT NULL)"
|
||||
)
|
||||
await conn.execute("CREATE TABLE messages (id INTEGER PRIMARY KEY, text TEXT NOT NULL)")
|
||||
await conn.commit()
|
||||
await set_version(conn, 20)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user