From 9f1b4e02aab5d10e093e57d218c8e98c92e987ff Mon Sep 17 00:00:00 2001 From: Mark Jordan Date: Sat, 14 Sep 2024 12:44:06 -0700 Subject: [PATCH] Debugging test failures in Python 3.8. --- tests/unit_tests.py | 4 ++-- workbench_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index de370e5..62f9f23 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -470,7 +470,7 @@ def test_validate_bad_date_string_values(self): res = workbench_utils.validate_node_created_date_string(value) self.assertFalse(res) -''' + class TestValidEdtfDate(unittest.TestCase): def test_validate_good_edtf_values(self): @@ -519,7 +519,7 @@ def test_validate_bad_edtf_values(self): for bad_value in bad_values: res = workbench_utils.validate_edtf_date(bad_value) self.assertFalse(res, bad_value) -''' + class TestSetMediaType(unittest.TestCase): diff --git a/workbench_utils.py b/workbench_utils.py index 34050bd..78ea54c 100644 --- a/workbench_utils.py +++ b/workbench_utils.py @@ -25,7 +25,7 @@ from ruamel.yaml import YAML, YAMLError from unidecode import unidecode from progress_bar import InitBar -# import edtf_validate.valid_edtf +import edtf_validate.valid_edtf import shutil import itertools import http.client