Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Assign NameStore Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Dict Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Break orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os N/A shutil cactus.static.external.exceptions ExternalFailure cactus.static.external External cactus.tests SiteTestCase TestExternal N/A External N/A N/A runs N/A run N/A N/A self N/A N/A N/A out N/A N/A N/A super TestExternal self run N/A N/A N/A self accepted N/A N/A N/A N/A N/A TestExternal runs append self N/A out N/A N/A DummyCriticalFailingProc N/A TestExternal N/A N/A supported_extensions N/A src N/A output_extension dst N/A critical True _run N/A N/A self N/A N/A N/A N/A OSError Error. N/A N/A DummyOptionalFailingProc N/A TestExternal N/A N/A supported_extensions N/A src N/A output_extension dst N/A critical False _run N/A N/A self N/A N/A N/A N/A OSError Error. N/A N/A DummyExternal N/A TestExternal N/A N/A supported_extensions N/A src N/A critical False _run N/A N/A self N/A N/A N/A N/A N/A shutil move N/A self src N/A self dst N/A N/A ExtensionDummyProc N/A DummyExternal N/A N/A supported_extensions N/A src N/A output_extension blah N/A DummyProc N/A DummyExternal N/A N/A output_extension dst N/A DummyOptimizer N/A DummyExternal N/A N/A supported_extensions N/A dst N/A output_extension dst N/A SourceOptimizer N/A DummyExternal N/A N/A supported_extensions N/A src N/A output_extension src N/A UnrelatedOptimizer N/A DummyExternal N/A N/A supported_extensions N/A aaa N/A output_extension bbb N/A DiscardingProcessor N/A DummyProc N/A _run N/A N/A self N/A N/A N/A N/A N/A self discard N/A N/A TestStaticExternals N/A SiteTestCase N/A N/A 
    Test that externals are called properly, and that exceptions are handled properly.
     get_config_for_test N/A N/A self N/A N/A N/A N/A optimize N/A src dst N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestStaticExternals self setUp N/A N/A N/A N/A N/A self site external_manager clear N/A N/A self dummy_static test.src N/A N/A open N/A N/A N/A os path join N/A N/A self site static_path N/A self dummy_static wb N/A N/A TestExternal runs N/A N/A test_critical N/A N/A self N/A N/A N/A 
        Test that failures on critical processors are escalated
         N/A N/A N/A N/A N/A self site external_manager register_processor DummyCriticalFailingProc N/A N/A N/A self assertRaises ExternalFailure N/A N/A self site build N/A test_non_critical N/A N/A self N/A N/A N/A 
        Test that failures on non-critical processors are ignored
         N/A N/A N/A N/A N/A self site external_manager register_processor DummyOptionalFailingProc N/A N/A N/A N/A self site build N/A test_deregister N/A N/A self N/A N/A N/A 
        Test that we can de-register a processor.
         N/A N/A N/A N/A N/A self site external_manager register_processor DummyCriticalFailingProc N/A N/A N/A self assertRaises ExternalFailure N/A N/A self site build N/A N/A N/A N/A N/A self site external_manager deregister_processor DummyCriticalFailingProc N/A N/A N/A N/A self site build N/A test_run N/A N/A self N/A N/A N/A 
        Test that processors and optimizers run
         N/A N/A N/A N/A N/A self site external_manager register_processor DummyProc N/A N/A N/A N/A N/A self site external_manager register_optimizer DummyOptimizer N/A N/A N/A N/A N/A self site external_manager register_optimizer UnrelatedOptimizer N/A N/A N/A N/A self site build N/A N/A N/A self assertEqual 2 N/A len N/A TestExternal runs N/A N/A proc opti N/A TestExternal runs N/A N/A N/A self assertIsInstance proc DummyProc N/A N/A N/A self assertIsInstance opti DummyOptimizer N/A test_extensions N/A N/A self N/A N/A N/A 
        Test that processors extensions are taken into account
         N/A N/A N/A N/A N/A self site external_manager register_processor ExtensionDummyProc N/A N/A N/A N/A self site build N/A static N/A N/A N/A self site static N/A N/A N/A N/A static src_filename N/A self dummy_static N/A N/A N/A N/A self assertEqual N/A static final_extension N/A ExtensionDummyProc output_extension N/A N/A N/A N/A N/A self fail N/A N/A Did not find {0} format N/A self dummy_static N/A test_discard N/A N/A self N/A N/A N/A 
        Test that we discard files properly
         N/A N/A N/A N/A N/A self site external_manager register_processor DiscardingProcessor N/A N/A N/A N/A N/A self site external_manager register_optimizer SourceOptimizer N/A N/A N/A N/A self site build N/A N/A N/A self assertEqual 0 N/A len N/A TestExternal runs N/A N/A N/A self assertFileDoesNotExist N/A N/A N/A os path join N/A N/A self site build_path static test.dst N/A N/A N/A self assertFileDoesNotExist N/A N/A N/A os path join N/A N/A self site build_path static test.src N/A static N/A N/A N/A self site static N/A N/A N/A N/A static src_filename N/A self dummy_static N/A N/A N/A N/A self assertTrue N/A static discarded N/A N/A