Fix revert column behavior
Now all columns are tested in the parquet test. Signed-off-by: Will Beason <willbeason@gmail.com>
This commit is contained in:
@@ -349,13 +349,10 @@ class WikiqTestCase(unittest.TestCase):
|
||||
baseline['anon'] = baseline['anon'].replace(np.nan, None)
|
||||
|
||||
for index, row in baseline.iterrows():
|
||||
if row['editorid'] is None or test['editorid'][index] is None:
|
||||
if row['editorid'] != test['editorid'][index]:
|
||||
print(row['revid'], ":", row['editorid'], "!=", test['editorid'][index])
|
||||
if row['revert'] != test['revert'][index]:
|
||||
print(row['revid'], ":", row['revert'], "!=", test['revert'][index])
|
||||
|
||||
for col in baseline.columns:
|
||||
if col == "revert":
|
||||
continue
|
||||
try:
|
||||
assert_series_equal(test[col], baseline[col], check_like=True, check_dtype=False)
|
||||
except ValueError as exc:
|
||||
|
||||
Reference in New Issue
Block a user