Module ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword ListLoad Str Str Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr Call NameLoad keyword TupleLoad NameLoad TupleLoad Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr keyword NameLoad Expr Call NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Assign NameStore Dict Str Str Num Num Assign AttributeStore NameLoad attr ListLoad Num Num Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad AttributeLoad Call NameLoad attr attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str With Call NameLoad Str keyword Call NameLoad NameStore body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad AttributeLoad Call NameLoad attr attr Index Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign TupleStore NameStore NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign TupleStore NameStore NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad Call NameLoad attr attr decorator_list decorator_list
N/A django.test TestCase mock Mock NonCallableMock NonCallableMagicMock patch silk.collector DataCollector silk.models SQLQuery Request silk.sql execute_sql util delete_all_models mock_sql N/A N/A N/A N/A N/A mock_sql_query N/A Mock spec_set N/A _execute_sql query as_sql N/A N/A mock_sql_query _execute_sql N/A Mock N/A N/A mock_sql_query query N/A NonCallableMock spec_set N/A model N/A N/A N/A mock_sql_query query model N/A Mock N/A query_string SELECT * from table_name N/A N/A mock_sql_query as_sql N/A Mock return_value N/A query_string N/A N/A N/A mock_sql_query query_string N/A TestCall N/A TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestCall cls setUpClass N/A N/A N/A N/A DataCollector configure request None N/A N/A delete_all_models SQLQuery N/A N/A N/A cls mock_sql N/A cls query_string N/A mock_sql N/A kwargs N/A one two 1 2 N/A N/A cls args N/A 1 2 N/A N/A cls kwargs kwargs N/A N/A execute_sql N/A cls mock_sql N/A cls args N/A cls kwargs N/A classmethod test_called N/A N/A self N/A N/A N/A N/A N/A N/A N/A self mock_sql _execute_sql assert_called_once_with N/A self args N/A self kwargs N/A test_count N/A N/A self N/A N/A N/A N/A N/A self assertEqual 1 N/A len N/A N/A DataCollector queries N/A _get_query N/A N/A self N/A N/A N/A query N/A N/A list N/A N/A N/A N/A DataCollector queries values N/A 0 N/A query N/A test_no_request N/A N/A self N/A N/A N/A query N/A N/A self _get_query N/A N/A N/A self assertNotIn request query N/A test_query N/A N/A self N/A N/A N/A query N/A N/A self _get_query N/A N/A N/A self assertEqual N/A query N/A query N/A self query_string N/A N/A TestCallSilky N/A TestCase N/A test_no_effect N/A N/A self N/A N/A N/A N/A N/A N/A DataCollector configure N/A N/A sql _ N/A mock_sql N/A N/A N/A sql query model N/A NonCallableMagicMock spec_set N/A __module__ N/A N/A N/A N/A sql query model __module__ silk.models N/A N/A patch silk.sql.DataCollector return_value N/A Mock mock_DataCollector N/A N/A N/A execute_sql sql N/A N/A N/A self assertFalse N/A N/A N/A mock_DataCollector register_query call_count N/A N/A TestCollectorInteraction N/A TestCase N/A _query N/A N/A self N/A N/A N/A N/A N/A query N/A N/A list N/A N/A N/A N/A DataCollector queries values N/A 0 N/A N/A N/A IndexError N/A N/A N/A N/A self fail No queries created N/A query N/A test_request N/A N/A self N/A N/A N/A N/A N/A N/A DataCollector configure request N/A N/A N/A Request objects create path /path/to/somewhere N/A N/A sql _ N/A mock_sql N/A N/A execute_sql sql N/A query N/A N/A self _query N/A N/A N/A self assertEqual N/A query N/A request N/A N/A DataCollector request N/A test_registration N/A N/A self N/A N/A N/A N/A N/A N/A DataCollector configure request N/A N/A N/A Request objects create path /path/to/somewhere N/A N/A sql _ N/A mock_sql N/A N/A execute_sql sql N/A query N/A N/A self _query N/A N/A N/A self assertIn query N/A N/A N/A N/A DataCollector queries values N/A N/A