History | View | Annotate | Download (22.3 kB)
Add 2 new exceptions to AstakosClient
Correct unit tests to run with AstakosClient class
TestAuthenticate now works with AstakosClient
Implement unit tests for getDisplayNmaes
Move token argument
Remove token argument from class initializationmethod and make it a mandatory argument to allthe other class methods.
Implement getUUIDs/getUUID methods
Create more Exception Classes for AstakosClient
Create utils and errors modules for astakosclient
Implement the mocked _doRequest for unit testing
When unit testing our astakos-client module we have toreplace it's _doRequest function with some dummy ones.In this commit we create this dummy functions that aregoing to be used through our tests.
First test for _callAstakos, raise socket error
The first unit test for _callAstakos function, checksthe answer when there is no internet connection(should raise a socket exception).
Add more unit tests for _callAstakos function
Add unit tests for `authenticate' function
In unit tests change user info from string to dict
Unit test user_catalogs without POST method