one.tests.test_alyxclient
Unit tests for the one.webclient module
Classes
Tests for AlyxClient authentication, token storage, login/out methods and user prompts |
|
Tests for AlyxClient methods that modify the JSON field of a REST endpoint. |
|
Tests for REST caching system, the cache decorator and cache flags |
- class TestAuthentication(methodName='runTest')[source]
Bases:
TestCase
Tests for AlyxClient authentication, token storage, login/out methods and user prompts
- test_authentication()[source]
Test for AlyxClient.authenticate and AlyxClient.is_logged_in property
- class TestJsonFieldMethods(methodName='runTest')[source]
Bases:
TestCase
Tests for AlyxClient methods that modify the JSON field of a REST endpoint.
These tests are over-engineered in order to test Alyx Django queries with JSON fields. Django queries are also tested in TestRemote.test_search.
- class TestRestCache(methodName='runTest')[source]
Bases:
TestCase
Tests for REST caching system, the cache decorator and cache flags
- test_loads_cached()[source]
Test for one.webclient._cache_response decorator, checks returns cached result