gslab-econ / gslab_python

Python tools for GSLab
MIT License
13 stars 11 forks source link

SaveData Unit Tests #183

Closed liaochris closed 1 month ago

liaochris commented 2 months ago

To be edited as @zhizhongpu and I progress on this issue.

zhizhongpu commented 1 month ago

Per meeting: this issue is ready for development - it can be independent of progress from other branches.

liaochris commented 1 month ago

@zhizhongpu please verify that when you run python test_main.py from gslab_misc/SaveData/tests that the tests all pass.

zhizhongpu commented 1 month ago

python test_main.py

thanks @liaochris

(base) zpu-mbp:~ zpu$ cd /Users/zpu/Documents/gh/gslab_python/gslab_misc
(base) zpu-mbp:gslab_misc zpu$ cd SaveData/tests/
(base) zpu-mbp:tests zpu$ python test_main.py
.The following keys are missing in some rows: b .
.......
----------------------------------------------------------------------
Ran 8 tests in 0.046s

OK
(base) zpu-mbp:tests zpu$
zhizhongpu commented 1 month ago

continues in #185

liaochris commented 2 weeks ago

In this issue, we updated SaveData.py, the unit tests file test_main.py and the test data data.csv to align with the tests used in gslab-econ/gslab_r.

Latest version of issue branch: https://github.com/gslab-econ/gslab_python/commit/52993006cd12ee8fa7731e0e41adbcc9970cd526