From c8e723a7658a2dc966083918eb03fd42fd4ab9c4 Mon Sep 17 00:00:00 2001 From: Doug Mills Date: Wed, 8 Jan 2025 08:29:18 +0000 Subject: [PATCH] updated based on comments --- reference_documents/check/base.py | 2 +- reference_documents/csv_importer/importer.py | 2 +- reference_documents/tests/test_csv_upload_forms.py | 8 -------- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 reference_documents/tests/test_csv_upload_forms.py diff --git a/reference_documents/check/base.py b/reference_documents/check/base.py index 5d8a95df4..72ae02b99 100644 --- a/reference_documents/check/base.py +++ b/reference_documents/check/base.py @@ -815,7 +815,7 @@ def tap_recursive_comm_code_check( Args: snapshot: CommodityTreeSnapshot, A snapshot from self.ref_rate.comm_code and children parent_item_id: str, The parent comm code item_id to check - parent_item_suffix: int, The parent comm code suffix to check + parent_item_suffix: str, The parent comm code suffix to check level: int, the numeric level below the parent comm code that is currently being performed at diff --git a/reference_documents/csv_importer/importer.py b/reference_documents/csv_importer/importer.py index 3d5c5c4ea..857f5a26b 100644 --- a/reference_documents/csv_importer/importer.py +++ b/reference_documents/csv_importer/importer.py @@ -97,7 +97,7 @@ def find_reference_document_version( """ Args: - reference_document_version: the version of the reference document as a string + reference_document_version: float, the version of the reference document reference_document: The reference document as a ReferenceDocument status: Optional, the status of the reference document from the choices available from ReferenceDocumentVersionStatus.choices diff --git a/reference_documents/tests/test_csv_upload_forms.py b/reference_documents/tests/test_csv_upload_forms.py deleted file mode 100644 index 6bac1530c..000000000 --- a/reference_documents/tests/test_csv_upload_forms.py +++ /dev/null @@ -1,8 +0,0 @@ -import pytest - -pytestmark = pytest.mark.django_db - - -@pytest.mark.reference_documents -class TestReferenceDocumentCreateCsvUploadForm: - pass