Corey Morris
commited on
Commit
·
201a72d
1
Parent(s):
dd61816
added a TODO
Browse files- test_regression.py +6 -0
test_regression.py
CHANGED
|
@@ -15,6 +15,12 @@ class TestRegression(unittest.TestCase):
|
|
| 15 |
reference_file = f'dataframe_history/output_{last_commit}.parquet'
|
| 16 |
df_reference = pd.read_parquet(reference_file)
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Compare DataFrames, allowing for some tolerance in floating-point comparisons
|
| 20 |
pd.testing.assert_frame_equal(df_current, df_reference, check_dtype=True, atol=1e-5)
|
|
|
|
| 15 |
reference_file = f'dataframe_history/output_{last_commit}.parquet'
|
| 16 |
df_reference = pd.read_parquet(reference_file)
|
| 17 |
|
| 18 |
+
#TODO
|
| 19 |
+
# if there are no untracked changes, the dataframes should be the same
|
| 20 |
+
# instead check the last commit to the one previous to that one
|
| 21 |
+
# if there are untracked changes, the dataframes should be different
|
| 22 |
+
# either optionally take a parameter for this test or extract the comparison logic so that it can be used separately to
|
| 23 |
+
# compare given any two commit hashes
|
| 24 |
|
| 25 |
# Compare DataFrames, allowing for some tolerance in floating-point comparisons
|
| 26 |
pd.testing.assert_frame_equal(df_current, df_reference, check_dtype=True, atol=1e-5)
|