Module ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Str Expr Call AttributeLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Num Expr Call AttributeLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Num Expr Call AttributeLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Num Expr Call AttributeLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Num decorator_list decorator_list
N/A preggy expect tests.base FilterTestCase FocalFilterTestCase N/A FilterTestCase N/A test_focal_filter_valid N/A N/A self N/A N/A N/A N/A N/A self get_filtered source.jpg thumbor.filters.focal focal(146x156:279x208) N/A N/A N/A N/A expect N/A N/A N/A N/A N/A self context request focal_points N/A 0 origin to_equal Explicit N/A N/A N/A N/A expect N/A N/A N/A N/A N/A self context request focal_points N/A 0 height to_equal 52 N/A N/A N/A N/A expect N/A N/A N/A N/A N/A self context request focal_points N/A 0 width to_equal 133 N/A N/A N/A N/A expect N/A N/A N/A N/A N/A self context request focal_points N/A 0 y to_equal 182 N/A N/A N/A N/A expect N/A N/A N/A N/A N/A self context request focal_points N/A 0 x to_equal 212 N/A test_focal_filter_no_change N/A N/A self N/A N/A config_context N/A N/A context N/A N/A N/A N/A N/A context request width 400 N/A N/A N/A context request height 600 N/A N/A image N/A N/A self get_filtered source.jpg thumbor.filters.focal focal(0x0:400x600) N/A expected N/A N/A self get_fixture source.jpg N/A ssim N/A N/A self get_ssim image expected N/A N/A N/A N/A expect ssim to_be_greater_than 0.99 N/A test_focal_filter_pass_through_empty N/A N/A self N/A N/A N/A image N/A N/A self get_filtered source.jpg thumbor.filters.focal focal() N/A expected N/A N/A self get_fixture source.jpg N/A ssim N/A N/A self get_ssim image expected N/A N/A N/A N/A expect ssim to_be_greater_than 0.99 N/A test_focal_filter_pass_through_invalid N/A N/A self N/A N/A N/A image N/A N/A self get_filtered source.jpg thumbor.filters.focal focal(0x0:0x0) N/A expected N/A N/A self get_fixture source.jpg N/A ssim N/A N/A self get_ssim image expected N/A N/A N/A N/A expect ssim to_be_greater_than 0.99 N/A test_focal_filter_pass_through_dumb N/A N/A self N/A N/A N/A image N/A N/A self get_filtered source.jpg thumbor.filters.focal focal(lkasjdklfjlkajsfd) N/A expected N/A N/A self get_fixture source.jpg N/A ssim N/A N/A self get_ssim image expected N/A N/A N/A N/A expect ssim to_be_greater_than 0.99 N/A N/A