Skip to content

Commit

Permalink
[sav] add test for loading sav #1867
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 19, 2023
1 parent c10ec50 commit 769eecd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ matrix_client # matrix API
zulip # zulip API
pyairtable # airtable API

-e git+https://github.com/saulpw/pyxlsb.git@visidata#egg=pyxlsb # xlsb
-e git+https://github.com/anjakefala/savReaderWriter # sav (SPSS)
-e git+https://github.com/saulpw/pyxlsb.git@visidata#egg=pyxlsb # xlsb
-e git+https://github.com/anjakefala/savReaderWriter#egg=savReaderWriter # sav (SPSS)
Binary file added sample_data/accidents.sav
Binary file not shown.
7 changes: 7 additions & 0 deletions tests/golden/load-sav.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
agecat gender accid pop
1.00 1.00 57997.00 198522.00
2.00 1.00 57113.00 203200.00
3.00 1.00 54123.00 200744.00
1.00 0.00 63936.00 187791.00
2.00 0.00 64835.00 195714.00
3.00 0.00 66804.00 208239.00
2 changes: 2 additions & 0 deletions tests/load-sav.vd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sheet col row longname input keystrokes comment
open-file sample_data/accidents.sav o

0 comments on commit 769eecd

Please sign in to comment.