From a15069fa21fd2ca7cd764815a7fd2fb3ac12c3c7 Mon Sep 17 00:00:00 2001 From: Thomas Wilmering Date: Thu, 11 Jan 2024 16:21:05 +0000 Subject: [PATCH] edit README --- README-public.md | 2 +- README.md | 2 +- cmem_plugin_uuid/transform/__init__.py | 2 +- tests/test_uuid.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README-public.md b/README-public.md index 141b035..545454f 100644 --- a/README-public.md +++ b/README-public.md @@ -1,6 +1,6 @@ # cmem-plugin-uuid -Create UUIDs versions 1, 3, 4, 5, 6, 7 and 8 in transformations. +Create universally unique identifiers (UUIDs) versions 1, 3, 4, 5, 6, 7 and 8 in transformations. ## Installation diff --git a/README.md b/README.md index dc7677c..470c31a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cmem-plugin-uuid -Create UUIDs versions 1, 3, 4, 5, 6, 7 and 8 in transformations. +Create universally unique identifiers (UUIDs) versions 1, 3, 4, 5, 6, 7 and 8 in transformations. [![eccenca Corporate Memory](https://img.shields.io/badge/eccenca-Corporate%20Memory-orange)](https://documentation.eccenca.com) diff --git a/cmem_plugin_uuid/transform/__init__.py b/cmem_plugin_uuid/transform/__init__.py index 7a56ee8..22564cd 100644 --- a/cmem_plugin_uuid/transform/__init__.py +++ b/cmem_plugin_uuid/transform/__init__.py @@ -94,7 +94,7 @@ def transform(self, inputs: Sequence[Sequence[str]]) -> Sequence[str]: description=( "Applies only if none of the pre-defined namespaces is selected. If " "enabled, the namespace string needs to be a valid UUID. " - "Otherwise, the namespace UUID is a UUIDv1 derived from the M5 hash " + "Otherwise, the namespace UUID is a UUIDv1 derived from the MD5 hash " "of the namespace string." ), default_value=False, diff --git a/tests/test_uuid.py b/tests/test_uuid.py index 29fcd57..d80cfb6 100644 --- a/tests/test_uuid.py +++ b/tests/test_uuid.py @@ -440,10 +440,10 @@ def test_uuid_version(): str(uuid.uuid4()), str(uuid.uuid5(name="test", namespace=uuid.NAMESPACE_URL)), str(uuid6.uuid6()), + str(uuid6.uuid1_to_uuid6(uuid.uuid1())), str(uuid6.uuid7()), str(uuid6.uuid8()), - str(uuid6.uuid1_to_uuid6(uuid.uuid1())), ] result = UUIDVersion().transform(inputs=[input_values]) assert len(result) == 8 - assert result == [str(i) for i in [1, 3, 4, 5, 6, 7, 8, 6]] + assert result == [str(i) for i in [1, 3, 4, 5, 6, 6, 7, 8]]