DataComparerLibrary 0.840__tar.gz → 0.841__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/PKG-INFO +1 -1
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/datacomparer.py +8 -1
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/version.py +1 -1
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary.egg-info/PKG-INFO +1 -1
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/LICENSE.txt +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/README.rst +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/pyproject.toml +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/setup.cfg +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/setup.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/__init__.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/datasorter.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/delimitertranslator.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/fileconverter.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/tools.py +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary.egg-info/SOURCES.txt +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary.egg-info/dependency_links.txt +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary.egg-info/top_level.txt +0 -0
- {datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/test/test1.py +0 -0
{datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/datacomparer.py
RENAMED
|
@@ -88,7 +88,13 @@ class DataComparer:
|
|
|
88
88
|
def __compare_data(self, actual_data, expected_data_including_templates):
|
|
89
89
|
difference_found = False
|
|
90
90
|
#
|
|
91
|
-
|
|
91
|
+
if actual_data and type(actual_data[0]) is not list: # only a single row
|
|
92
|
+
actual_data = [actual_data,] # add row to tuple of lenght 1
|
|
93
|
+
#
|
|
94
|
+
if expected_data_including_templates and type(expected_data_including_templates[0]) is not list: # only a single row
|
|
95
|
+
expected_data_including_templates = [expected_data_including_templates,] # add row to tuple of lenght 1
|
|
96
|
+
|
|
97
|
+
number_of_rows_actual_data = len(actual_data)
|
|
92
98
|
number_of_rows_expected_data = len(expected_data_including_templates)
|
|
93
99
|
|
|
94
100
|
number_of_rows = number_of_rows_actual_data if (number_of_rows_actual_data >= number_of_rows_expected_data) else number_of_rows_expected_data
|
|
@@ -351,6 +357,7 @@ class DataComparer:
|
|
|
351
357
|
print("=== ", title, " ", end="")
|
|
352
358
|
print("=" * (max_length_title - length_title))
|
|
353
359
|
print()
|
|
360
|
+
#
|
|
354
361
|
for row in reader_file_list:
|
|
355
362
|
for cell_value in row:
|
|
356
363
|
#if isinstance(cell_value, str):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/datasorter.py
RENAMED
|
File without changes
|
|
File without changes
|
{datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary/fileconverter.py
RENAMED
|
File without changes
|
|
File without changes
|
{datacomparerlibrary-0.840 → datacomparerlibrary-0.841}/src/DataComparerLibrary.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|