-
Notifications
You must be signed in to change notification settings - Fork 1
Tests HOWTO
Wayne edited this page Jun 17, 2014
·
1 revision
python-ipernity-api has a serial unittest cases.
In order to run various test cases on ipernity.com, you need a Ipernity account.
Once you run unit tests, it would request you login ipernity.com by invoke a browser guiding to ipernity.com authentication page.
After agree the authentication, ipernity would redirect to a local page, however, it does NOT support port number redirection. So you need manual add port number to url (port num is 5678, url: http://localhost:5678), and then go to that page, it would tell you to close the page. Done!
For full tests, the account needs to have:
- network
- group
Otherwise, TestCaseError would raise when running some cases.
nosetest2 tests
if you don't have nose installed, just use the below command:
python2 -m unittest tests