Skip to content

Commit 7994d5e

Browse files
Instructions on updating test_csv
1 parent a64aaae commit 7994d5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_geophires_x_client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,15 @@ def test_input_with_non_default_units(self):
448448
self.assertDictEqual(result_default_units, result_non_default_units)
449449

450450
def test_csv(self):
451+
"""
452+
TODO make this less tedious to update when expected result values change
453+
454+
Current easiest method to update:
455+
1. set breakpoint on line after `as_csv = result.as_csv()`
456+
2. debug test, hit break point
457+
3. copy-paste value of `as_csv` to example1_addons.csv
458+
"""
459+
451460
def assertFileContentsEqual(expected_file_path, actual_file_path, tol=0.01):
452461
with open(expected_file_path, encoding='utf-8') as ef:
453462
expected_lines = ef.readlines()

0 commit comments

Comments
 (0)