From aa48feabcc1a1198bc101f07617648f9cf9ba030 Mon Sep 17 00:00:00 2001 From: Kristian Larsson Date: Thu, 16 Apr 2026 16:21:43 +0200 Subject: [PATCH] Move module docstrings to top --- src/drivers.act | 4 ++-- src/router_client.act | 4 ++-- src/ssh.act | 4 ++-- src/test_drivers.act | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/drivers.act b/src/drivers.act index 61293c1..cfb4608 100644 --- a/src/drivers.act +++ b/src/drivers.act @@ -1,11 +1,11 @@ +"""Router driver auto-detection and base classes""" + import logging import ssh import re import testing import time -"""Router driver auto-detection and base classes""" - # SSH Client Wrapper for dependency injection and testing class SSHClientWrapper(object): """Base wrapper interface for SSH client operations""" diff --git a/src/router_client.act b/src/router_client.act index 7cf3b7c..9c4cef4 100644 --- a/src/router_client.act +++ b/src/router_client.act @@ -1,11 +1,11 @@ +"""Simple router client library for Acton""" + import logging import process import ssh import drivers -"""Simple router client library for Acton""" - actor Client(pcap: process.ProcessCap, address: str, username: str, diff --git a/src/ssh.act b/src/ssh.act index 507c95a..936a73f 100644 --- a/src/ssh.act +++ b/src/ssh.act @@ -1,8 +1,8 @@ +"""SSH client library for Acton""" + import logging import process -"""SSH client library for Acton""" - # Authentication methods AUTH_NONE: int = 0 AUTH_PASSWORD: int = 1 diff --git a/src/test_drivers.act b/src/test_drivers.act index ac83eba..42bc659 100644 --- a/src/test_drivers.act +++ b/src/test_drivers.act @@ -1,7 +1,3 @@ -import testing -import logging -import drivers - """ Driver State Machine Tests @@ -9,6 +5,10 @@ Tests the driver state machine using async actor pattern with external driving. Uses TestSSHWrapper to capture commands and handle_data() to simulate responses. """ +import testing +import logging +import drivers + actor _test_juniper_driver_initialization(t: testing.AsyncT): """Test Juniper driver initialization and state transitions"""