Module Expr Str Import alias Import alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr Str Assert Call AttributeLoad NameLoad attr Str Assert CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr Str Assert Call AttributeLoad NameLoad attr Str Assert CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert CompareIn Str SubscriptLoad NameLoad Index Str Assert CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assert CompareLtLt NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assert CompareLtLt NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num Assert CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str Index Str ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert CompareIn Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Assert CompareIn Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Assert CompareIn Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr keyword Num Index Str Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Index Str Str decorator_list decorator_list
N/A N/A Unit tests for h/test/factories.py. N/A datetime N/A h.test.factories factories TestAnnotation N/A object N/A N/A Unit tests for the Annotation factory class. test_id N/A N/A self N/A N/A N/A Each test annotation should be created with a unique ID. N/A annotation_1 N/A N/A factories Annotation N/A annotation_2 N/A N/A factories Annotation N/A N/A N/A annotation_1 get id N/A N/A N/A annotation_2 get id N/A N/A N/A annotation_1 N/A id N/A annotation_2 N/A id N/A test_text N/A N/A self N/A N/A N/A Each annotation should have unique note text. N/A annotation_1 N/A N/A factories Annotation N/A annotation_2 N/A N/A factories Annotation N/A N/A N/A annotation_1 get text N/A N/A N/A annotation_2 get text N/A N/A N/A annotation_1 N/A text N/A annotation_2 N/A text N/A test_custom_user N/A N/A self N/A N/A N/A A custom username should be used in the user field. N/A annotation N/A N/A factories Annotation username bobo N/A N/A bobo N/A annotation N/A user N/A N/A username annotation N/A test_created_date N/A N/A self N/A N/A N/A Annotations should have a created date from the current time. N/A before N/A N/A N/A datetime datetime now N/A annotation N/A N/A factories Annotation N/A after N/A N/A N/A datetime datetime now N/A created N/A N/A N/A datetime datetime strptime N/A annotation N/A created %Y-%m-%dT%H:%M:%S.%f N/A N/A before created after N/A test_updated_date N/A N/A self N/A N/A N/A Annotations should have an updated date from the current time. N/A before N/A N/A N/A datetime datetime now N/A annotation N/A N/A factories Annotation N/A after N/A N/A N/A datetime datetime now N/A updated N/A N/A N/A datetime datetime strptime N/A annotation N/A updated %Y-%m-%dT%H:%M:%S.%f N/A N/A before updated after N/A test_tags N/A N/A self N/A N/A N/A It should be possible to choose the number of tags with num_tags. N/A annotation N/A N/A factories Annotation num_tags 20 N/A N/A N/A len N/A annotation N/A tags 20 N/A N/A num_tags annotation N/A test_custom_tags N/A N/A self N/A N/A N/A N/A N/A N/A N/A factories Annotation tags N/A foo bar gar N/A tags N/A foo bar gar N/A test_uri N/A N/A self N/A N/A N/A annotation N/A N/A factories Annotation random_number 3 N/A N/A N/A annotation N/A uri http://example.com/document_3 N/A N/A random_number annotation N/A test_source N/A N/A self N/A N/A N/A annotation N/A N/A factories Annotation random_number 3 N/A N/A N/A N/A N/A annotation N/A target N/A 0 N/A source http://example.com/document_3 N/A test_permissions N/A N/A self N/A N/A N/A annotation N/A N/A factories Annotation username test_user N/A N/A test_user N/A N/A N/A annotation N/A permissions N/A admin N/A 0 N/A N/A test_user N/A N/A N/A annotation N/A permissions N/A update N/A 0 N/A N/A test_user N/A N/A N/A annotation N/A permissions N/A delete N/A 0 N/A test_document_title N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A factories Annotation random_number 30 N/A document N/A title Example Document 30 N/A test_document_link N/A N/A self N/A N/A N/A annotation N/A N/A factories Annotation random_number 30 N/A N/A N/A N/A N/A N/A annotation N/A document N/A link N/A 0 N/A href http://example.com/document_30 N/A N/A