From a0244482692edf794960f3c2af9461be2ad15e8a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 2 May 2024 01:11:36 +0200 Subject: [PATCH] Move VersionedAttributes code into appropriotely named module. --- plomtask/conditions.py | 2 +- plomtask/processes.py | 2 +- plomtask/{misc.py => versioned_attributes.py} | 0 tests/versioned_attributes.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename plomtask/{misc.py => versioned_attributes.py} (100%) diff --git a/plomtask/conditions.py b/plomtask/conditions.py index 45aa62b..539db9c 100644 --- a/plomtask/conditions.py +++ b/plomtask/conditions.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Any from sqlite3 import Row from plomtask.db import DatabaseConnection, BaseModel -from plomtask.misc import VersionedAttribute +from plomtask.versioned_attributes import VersionedAttribute from plomtask.exceptions import HandledException diff --git a/plomtask/processes.py b/plomtask/processes.py index 375a0be..21e2d81 100644 --- a/plomtask/processes.py +++ b/plomtask/processes.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Set, Any from sqlite3 import Row from plomtask.db import DatabaseConnection, BaseModel -from plomtask.misc import VersionedAttribute +from plomtask.versioned_attributes import VersionedAttribute from plomtask.conditions import Condition, ConditionsRelations from plomtask.exceptions import (NotFoundException, BadFormatException, HandledException) diff --git a/plomtask/misc.py b/plomtask/versioned_attributes.py similarity index 100% rename from plomtask/misc.py rename to plomtask/versioned_attributes.py diff --git a/tests/versioned_attributes.py b/tests/versioned_attributes.py index fdb1939..5238d70 100644 --- a/tests/versioned_attributes.py +++ b/tests/versioned_attributes.py @@ -3,7 +3,7 @@ from unittest import TestCase from time import sleep from datetime import datetime from tests.utils import TestCaseWithDB -from plomtask.misc import VersionedAttribute, TIMESTAMP_FMT +from plomtask.versioned_attributes import VersionedAttribute, TIMESTAMP_FMT from plomtask.db import BaseModel SQL_TEST_TABLE = ''' -- 2.30.2