Neuroglancer tests
This includes a suite of tests that are mostly for making sure the REST API is functioning as expected.
- class neuroglancer.tests.TestAnnotations(methodName='runTest')
A class for testing the annotations
- test_get_com()
Test the API that returns coms
URL = /get_com/{self.prep_id}/{self.annotator_id}/{self.COMsource}
- test_get_com_list()
Test the API that returns the list of coms
URL = /get_com_list
- test_get_marked_cell()
Test the API that returns marked cells
URL = /get_marked_cell/{id}
- test_get_marked_cell_list()
Test the API that returns the list of marked cell
URL = /get_marked_cell_list
- test_get_volume()
Test the API that returns a volume
URL = /get_volume/{self.annotation_session_polygon_sequence.id}
- test_get_volume_list()
Test the API that returns the list of volumes
URL = /get_volume_list
- class neuroglancer.tests.TestNeuroglancer(methodName='runTest')
URLs taken from neuroglancer/urls.py. We should have one test per url.
- test_get_landmark_list()
tests the API that returns the list of available neuroglancer states
URL = /landmark_list
- test_neuroglancer_url()
tests the API that returns the list of available neuroglancer states
URL = /neuroglancer
- test_save_annotations()
Test saving annotations.
URL = /save_annotations/<int:url_id>/<str:annotation_layer_name>
- test_save_annotations_377()
Test saving annotations ID = 377.
URL = /save_annotations/<int:url_id>/<str:annotation_layer_name>
- class neuroglancer.tests.TestSetUp(methodName='runTest')
- setUp()
Hook method for setting up the test fixture before exercising it.
- class neuroglancer.tests.TestTransformation(methodName='runTest')
A class for testing the rotations/transformations
- test_get_rotation()
Test the API that returns the list of available transformations path(‘rotation/<str:prep_id>/<int:annotator_id>/<str:source>/’ URL = /rotation/{self.prep_id}/{self.annotator_id}/{self.COMsource}/
- test_get_rotation_inverse()
Test the API that returns the list of available transformations
URL = /rotation/{self.prep_id}/{self.annotator_id}/{self.COMsource}/{self.reverse}
- test_get_rotation_inverse_rescale()
Test the API that returns the list of available transformations
URL = /rotation/{self.prep_id}/{self.annotator_id}/{self.COMsource}/{self.reverse}/{self.reference_scales}
- test_get_rotation_rescale()
Test the API that returns the list of available transformations
URL = /rotation/{self.prep_id}/{self.annotator_id}/{self.COMsource}/{self.reference_scales}
- test_rotation_list()
Test the API that returns the list of available transformations
URL = /rotations
- test_rotation_url_with_bad_animal()
Test the API that retrieves a specific transformation for a nonexistant animal and checks that the identity transform is returned
URL = /rotation/XXX/2/MANUAL/