mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 00:01:16 -07:00
Quick fix: updating snapshots to have more sigfigs (#1409)
Updated snapshots to include 10 digits after the decimal
This commit is contained in:
parent
9d920d4db4
commit
2279a04c94
7 changed files with 214 additions and 213 deletions
|
@ -33,6 +33,7 @@ class TestETL:
|
|||
_EXTRACT_CSV_FILE_NAME = "extract.csv"
|
||||
_TRANSFORM_CSV_FILE_NAME = "transform.csv"
|
||||
_OUTPUT_CSV_FILE_NAME = "output.csv"
|
||||
_FLOAT_FORMAT = "%.10f"
|
||||
|
||||
# This *does* need to be updated in the child class. It specifies where the "sample data" is
|
||||
# so that we do not have to manually copy the "sample data" when we run the tests.
|
||||
|
@ -229,7 +230,7 @@ class TestETL:
|
|||
)
|
||||
snapshot.snapshot_dir = self._DATA_DIRECTORY_FOR_TEST
|
||||
snapshot.assert_match(
|
||||
tmp_df.to_csv(index=False, float_format="%.5f"),
|
||||
tmp_df.to_csv(index=False, float_format=self._FLOAT_FORMAT),
|
||||
self._EXTRACT_CSV_FILE_NAME,
|
||||
)
|
||||
|
||||
|
@ -243,7 +244,7 @@ class TestETL:
|
|||
|
||||
snapshot.snapshot_dir = self._DATA_DIRECTORY_FOR_TEST
|
||||
snapshot.assert_match(
|
||||
etl.output_df.to_csv(index=False, float_format="%.5f"),
|
||||
etl.output_df.to_csv(index=False, float_format=self._FLOAT_FORMAT),
|
||||
self._TRANSFORM_CSV_FILE_NAME,
|
||||
)
|
||||
|
||||
|
@ -297,7 +298,7 @@ class TestETL:
|
|||
# Check the snapshots
|
||||
snapshot.snapshot_dir = self._DATA_DIRECTORY_FOR_TEST
|
||||
snapshot.assert_match(
|
||||
actual_output.to_csv(index=False, float_format="%.5f"),
|
||||
actual_output.to_csv(index=False, float_format=self._FLOAT_FORMAT),
|
||||
self._OUTPUT_CSV_FILE_NAME,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue