#2912 - eod commit. Addressing test and lint errors for refactored actions

This commit is contained in:
Charlie Crane
2024-10-21 17:51:55 +01:00
parent a5c7565f0e
commit 11357f87ca
13 changed files with 204 additions and 160 deletions

View File

@@ -1,16 +1,23 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK
from abc import abstractmethod
from typing import ClassVar, Dict
from typing import ClassVar
from primaite.game.agent.actions.manager import AbstractAction
from primaite.interface.request import RequestFormat
__all__ = (
"NodeFolderScanAction",
"NodeFolderCheckhashAction",
"NodeFolderRepairAction",
"NodeFolderRestoreAction",
"NodeFolderCreateAction",
)
class NodeFolderAbstractAction(AbstractAction):
class NodeFolderAbstractAction(AbstractAction, identifier="node_folder_abstract"):
"""
Base class for folder actions.
Any action which applies to a folder and uses node_id and folder_id as its only two parameters can inherit from
Any action which applies to a folder and uses node_name and folder_name as its only two parameters can inherit from
this base class.
"""