sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Fix ftp test bug. #91

Closed jeanconn closed 7 years ago

jeanconn commented 7 years ago

Fix ftp test bug. 'login' is the user key in netrc

jeanconn commented 7 years ago

Closes #89

jeanconn commented 7 years ago
ska-fido: git checkout master
Already on 'master'
ska-fido: py.test kadi/tests/test_occweb.py
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4
collected 2 items 

kadi/tests/test_occweb.py ss

==================================================== 2 skipped in 3.63 seconds =====================================================
ska-fido: git checkout fix_ftp_test
Switched to branch 'fix_ftp_test'
ska-fido: py.test kadi/tests/test_occweb.py
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4
collected 2 items 

kadi/tests/test_occweb.py ..

===================================================== 2 passed in 4.64 seconds =====================================================

I suppose the easiest way to test the xskipping is to edit my netrc.

jeanconn commented 7 years ago

With my .netrc edited to just cut the lucky reference, the skip still seems to work.

ska-fido: grep lucky ~/.netrc
ska-fido:
ska-fido: git checkout fix_ftp_test
Switched to branch 'fix_ftp_test'
ska-fido: py.test kadi/tests/test_occweb.py
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4
collected 2 items 

kadi/tests/test_occweb.py ss

==================================================== 2 skipped in 2.72 seconds ====================================================