Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Num Num ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str ListLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str ListLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad ListLoad Str Str ListLoad Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword ListLoad Dict Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Str Num Dict Str Str Str Num Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Lambda arguments args defaults NameLoad Assign NameStore Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str ListLoad Str Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr ListLoad Str ListLoad Str Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Str attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad Call NameLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad Call NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad decorator_list
N/A flexmock flexmock flexmock_teardown N/A OratorTestCase mock utils MockModel MockQueryBuilder MockConnection MockProcessor orator.query.grammars.grammar QueryGrammar orator.query.builder QueryBuilder orator.orm.builder Builder orator.orm.model Model orator.orm belongs_to has_many scope orator.exceptions.orm ModelNotFound orator.orm.collection Collection orator.connections Connection orator.query.processors QueryProcessor BuilderTestCase N/A OratorTestCase N/A tearDown N/A N/A self N/A N/A N/A N/A flexmock_teardown N/A test_find_method N/A N/A self N/A N/A N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model N/A N/A self get_mock_model N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A N/A builder first N/A N/A mock MagicMock return_value baz N/A result N/A N/A builder find bar N/A column N/A N/A N/A N/A N/A N/A builder get_query where assert_called_once_with foo_table.foo = bar N/A N/A N/A self assertEqual baz result N/A test_find_or_new_model_found N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A N/A model find_or_new N/A N/A mock MagicMock return_value baz N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A N/A builder first N/A N/A mock MagicMock return_value baz N/A expected N/A N/A model find_or_new bar N/A column N/A result N/A N/A builder find bar N/A column N/A N/A N/A N/A N/A N/A builder get_query where assert_called_once_with foo_table.foo = bar N/A N/A N/A self assertEqual expected result N/A test_find_or_new_model_not_found N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A N/A model find_or_new N/A N/A mock MagicMock return_value N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A N/A builder first N/A N/A mock MagicMock return_value None N/A result N/A N/A model find_or_new bar N/A column N/A find_result N/A N/A builder find bar N/A column N/A N/A N/A N/A N/A N/A builder get_query where assert_called_once_with foo_table.foo = bar N/A N/A N/A self assertIsNone find_result N/A N/A N/A self assertIsInstance result Model N/A test_find_or_fail_raises_model_not_found_exception N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A N/A builder first N/A N/A mock MagicMock return_value None N/A N/A N/A self assertRaises ModelNotFound N/A builder find_or_fail bar N/A column N/A N/A N/A N/A N/A N/A builder get_query where assert_called_once_with foo_table.foo = bar N/A N/A N/A N/A builder first assert_called_once_with N/A column N/A test_find_or_fail_with_many_raises_model_not_found_exception N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query where_in N/A N/A mock MagicMock N/A N/A builder get N/A N/A mock MagicMock return_value N/A Collection N/A 1 N/A N/A N/A self assertRaises ModelNotFound N/A builder find_or_fail N/A 1 2 N/A column N/A N/A N/A N/A N/A N/A builder get_query where_in assert_called_once_with foo_table.foo N/A 1 2 N/A N/A N/A N/A builder get assert_called_once_with N/A column N/A test_first_or_fail_raises_model_not_found_exception N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A builder first N/A N/A mock MagicMock return_value None N/A N/A N/A self assertRaises ModelNotFound N/A builder first_or_fail N/A column N/A N/A N/A N/A builder first assert_called_once_with N/A column N/A test_find_with_many N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query where_in N/A N/A mock MagicMock N/A N/A builder get N/A N/A mock MagicMock return_value baz N/A result N/A N/A builder find N/A 1 2 N/A column N/A N/A N/A self assertEqual baz result N/A N/A N/A N/A N/A N/A builder get_query where_in assert_called_once_with foo_table.foo N/A 1 2 N/A N/A N/A N/A builder get assert_called_once_with N/A column N/A test_first N/A N/A self N/A N/A N/A model N/A N/A self get_mock_model N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A builder set_model model N/A N/A builder take N/A N/A mock MagicMock return_value builder N/A N/A builder get N/A N/A mock MagicMock return_value N/A Collection N/A bar N/A result N/A N/A builder first N/A N/A N/A self assertEqual bar result N/A N/A N/A N/A builder take assert_called_once_with 1 N/A N/A N/A N/A builder get assert_called_once_with N/A * N/A test_get_loads_models_and_hydrates_eager_relations N/A N/A self N/A N/A N/A N/A flexmock Builder N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A N/A N/A N/A N/A builder should_receive get_models with_args N/A foo and_return N/A bar N/A N/A N/A N/A N/A N/A N/A builder should_receive eager_load_relations with_args N/A bar and_return N/A bar baz N/A N/A N/A builder set_model N/A N/A self get_mock_model N/A N/A N/A N/A builder get_model new_collection N/A N/A mock MagicMock return_value N/A Collection N/A bar baz N/A results N/A N/A builder get N/A foo N/A N/A N/A self assertEqual N/A bar baz N/A N/A results all N/A N/A N/A N/A N/A N/A builder get_model new_collection assert_called_with N/A bar baz N/A test_get_does_not_eager_relations_when_no_results_are_returned N/A N/A self N/A N/A N/A N/A flexmock Builder N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A N/A N/A N/A N/A N/A builder should_receive get_models with_args N/A foo and_return N/A bar N/A N/A N/A N/A N/A N/A N/A builder should_receive eager_load_relations with_args N/A bar and_return N/A N/A N/A N/A builder set_model N/A N/A self get_mock_model N/A N/A N/A N/A builder get_model new_collection N/A N/A mock MagicMock return_value N/A Collection N/A N/A results N/A N/A builder get N/A foo N/A N/A N/A self assertEqual N/A N/A N/A results all N/A N/A N/A N/A N/A N/A builder get_model new_collection assert_called_with N/A N/A test_pluck_with_model_found N/A N/A self N/A N/A N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A model N/A name foo N/A N/A builder first N/A N/A mock MagicMock return_value model N/A N/A N/A self assertEqual foo N/A N/A builder pluck name N/A N/A N/A N/A builder first assert_called_once_with N/A name N/A test_pluck_with_model_not_found N/A N/A self N/A N/A N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A N/A builder first N/A N/A mock MagicMock return_value None N/A N/A N/A self assertIsNone N/A N/A builder pluck name N/A test_chunk N/A N/A self N/A N/A N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A results N/A N/A foo1 foo2 N/A foo3 N/A N/A N/A builder for_page N/A N/A mock MagicMock return_value builder N/A N/A builder get N/A N/A mock MagicMock side_effect results N/A i 0 N/A result N/A N/A builder chunk 2 N/A N/A N/A N/A self assertEqual result N/A results N/A i N/A i 1 N/A N/A N/A N/A builder for_page assert_has_calls N/A N/A N/A mock call 1 2 N/A N/A mock call 2 2 N/A N/A mock call 3 2 N/A test_lists_without_model_getters N/A N/A self N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A N/A builder get_query get N/A N/A mock MagicMock return_value N/A N/A name bar N/A name baz N/A N/A N/A builder set_model N/A N/A self get_mock_model N/A N/A N/A N/A builder get_model has_get_mutator N/A N/A mock MagicMock return_value False N/A result N/A N/A builder lists name N/A N/A N/A self assertEqual N/A bar baz result N/A N/A N/A N/A N/A N/A builder get_query get assert_called_once_with N/A name N/A test_get_models_hydrates_models N/A N/A self N/A N/A N/A builder N/A Builder N/A N/A self get_mock_query_builder N/A records N/A N/A name age john 26 N/A name age jane 28 N/A N/A N/A N/A builder get_query get N/A N/A mock MagicMock return_value records N/A model N/A N/A self get_mock_model N/A N/A N/A builder set_model model N/A N/A model get_connection_name N/A N/A mock MagicMock return_value foo_connection N/A N/A model hydrate N/A N/A mock MagicMock return_value N/A Collection N/A hydrated N/A models N/A N/A builder get_models N/A foo N/A N/A N/A self assertEqual N/A N/A models all N/A hydrated N/A N/A N/A N/A model get_table assert_called_once_with N/A N/A N/A N/A model get_connection_name assert_called_once_with N/A N/A N/A N/A model hydrate assert_called_once_with records foo_connection N/A test_macros_are_called_on_builder N/A N/A self N/A N/A N/A builder N/A Builder N/A QueryBuilder N/A flexmock Connection N/A flexmock QueryGrammar N/A flexmock QueryProcessor foo_bar N/A N/A builder N/A N/A N/A N/A builder foobar True N/A builder N/A N/A N/A N/A builder macro foo_bar foo_bar N/A result N/A N/A builder foo_bar N/A N/A N/A self assertEqual result builder N/A N/A N/A self assertTrue N/A builder foobar N/A test_eager_load_relations_load_top_level_relationships N/A N/A self N/A N/A N/A N/A flexmock Builder N/A builder N/A Builder N/A flexmock N/A QueryBuilder None None None N/A nop1 N/A N/A N/A N/A None N/A nop2 N/A N/A N/A N/A None N/A N/A N/A builder set_eager_loads N/A foo foo.bar nop1 nop2 N/A N/A N/A N/A N/A N/A N/A builder should_receive _load_relation with_args N/A models foo nop1 and_return N/A foo N/A results N/A N/A builder eager_load_relations N/A models N/A N/A N/A self assertEqual N/A foo results N/A test_eager_load_accept_queries N/A N/A self N/A N/A N/A model N/A OrmBuilderTestModelCloseRelated N/A N/A flexmock Builder N/A builder N/A Builder N/A flexmock N/A QueryBuilder None None None N/A nop1 N/A N/A OrmBuilderTestModelFarRelatedStub where id 5 N/A N/A N/A builder set_eager_loads N/A foo nop1 N/A relation N/A flexmock N/A N/A N/A N/A N/A N/A N/A relation should_receive add_eager_constraints once with_args N/A models N/A N/A N/A N/A N/A N/A N/A N/A N/A relation should_receive init_relation once with_args N/A models foo and_return N/A models N/A N/A N/A N/A N/A N/A N/A relation should_receive get_eager once and_return N/A results N/A N/A N/A N/A N/A N/A N/A N/A N/A relation should_receive match once with_args N/A models N/A results foo and_return N/A foo N/A N/A N/A N/A N/A N/A N/A N/A N/A builder should_receive get_relation once with_args foo and_return relation N/A N/A N/A N/A N/A N/A N/A relation should_receive merge_query with_args nop1 and_return relation N/A results N/A N/A builder eager_load_relations N/A models N/A N/A N/A self assertEqual N/A foo results N/A test_relationship_eager_load_process N/A N/A self N/A N/A N/A proof N/A flexmock N/A N/A flexmock Builder N/A builder N/A Builder N/A flexmock N/A QueryBuilder None None None callback N/A N/A q N/A N/A N/A N/A proof foo q N/A N/A N/A N/A builder set_eager_loads N/A orders callback N/A relation N/A flexmock N/A N/A N/A N/A N/A N/A N/A relation should_receive add_eager_constraints once with_args N/A models N/A N/A N/A N/A N/A N/A N/A N/A N/A relation should_receive init_relation once with_args N/A models orders and_return N/A models N/A N/A N/A N/A N/A N/A N/A relation should_receive get_eager once and_return N/A results N/A N/A N/A N/A N/A N/A N/A relation should_receive get_query once and_return relation N/A N/A N/A N/A N/A N/A N/A N/A N/A relation should_receive match once with_args N/A models N/A results orders and_return N/A models.matched N/A N/A N/A N/A N/A N/A N/A N/A N/A builder should_receive get_relation once with_args orders and_return relation N/A results N/A N/A builder eager_load_relations N/A models N/A N/A N/A self assertEqual N/A models.matched results N/A N/A N/A self assertEqual relation N/A proof foo N/A test_get_relation_properly_sets_nested_relationships N/A N/A self N/A N/A N/A N/A flexmock Builder N/A builder N/A Builder N/A flexmock N/A QueryBuilder None None None N/A model N/A flexmock N/A Model N/A relation N/A flexmock N/A N/A N/A model set_relation orders relation N/A N/A N/A builder set_model model N/A relation_query N/A flexmock N/A N/A N/A N/A N/A relation should_receive get_query and_return relation_query N/A N/A N/A N/A N/A N/A N/A relation_query should_receive with_ once with_args N/A lines lines.details None None N/A N/A N/A builder set_eager_loads N/A orders orders.lines orders.lines.details None None None N/A relation N/A N/A builder get_relation orders N/A test_query_passthru N/A N/A self N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A N/A builder get_query foobar N/A N/A mock MagicMock return_value foo N/A N/A N/A self assertIsInstance N/A N/A builder foobar Builder N/A N/A N/A self assertEqual N/A N/A builder foobar builder N/A builder N/A N/A self get_builder N/A N/A N/A N/A builder get_query insert N/A N/A mock MagicMock return_value foo N/A N/A N/A self assertEqual foo N/A N/A builder insert N/A bar N/A N/A N/A N/A N/A N/A builder get_query insert assert_called_once_with N/A bar N/A test_query_scopes N/A N/A self N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A N/A builder get_query from_ N/A N/A mock MagicMock N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A model N/A OrmBuilderTestModelScopeStub N/A N/A N/A builder set_model model N/A result N/A N/A builder approved N/A N/A N/A self assertEqual result builder N/A test_simple_where N/A N/A self N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A N/A builder get_query where N/A N/A mock MagicMock N/A result N/A N/A builder where foo = bar N/A N/A N/A self assertEqual builder result N/A N/A N/A N/A N/A N/A builder get_query where assert_called_once_with foo = bar and N/A test_nested_where N/A N/A self N/A N/A N/A nested_query N/A N/A self get_builder N/A nested_raw_query N/A N/A self get_mock_query_builder N/A N/A nested_query get_query N/A N/A mock MagicMock return_value nested_raw_query N/A model N/A N/A self get_mock_model N/A builder N/A N/A self get_builder N/A N/A N/A builder set_model model N/A N/A N/A N/A builder get_query add_nested_where_query N/A N/A mock MagicMock N/A result N/A N/A builder where nested_query N/A N/A N/A self assertEqual builder result N/A N/A N/A N/A N/A N/A builder get_query add_nested_where_query assert_called_once_with nested_raw_query and N/A test_delete_override N/A N/A self N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder on_delete N/A N/A N/A builder_ N/A N/A foo builder_ N/A N/A N/A self assertEqual N/A foo builder N/A N/A builder delete N/A test_has_nested N/A N/A self N/A N/A N/A builder N/A N/A OrmBuilderTestModelParentStub where_has foo N/A N/A N/A q N/A N/A N/A q has bar N/A result N/A N/A N/A N/A OrmBuilderTestModelParentStub has foo.bar to_sql N/A N/A N/A self assertEqual N/A N/A builder to_sql result N/A test_has_nested_with_constraints N/A N/A self N/A N/A N/A model OrmBuilderTestModelParentStub N/A builder N/A N/A N/A N/A model where_has foo N/A N/A N/A q N/A N/A N/A q where_has bar N/A N/A N/A q N/A N/A N/A q where baz bam to_sql N/A result N/A N/A N/A N/A model where_has foo.bar N/A N/A N/A q N/A N/A N/A q where baz bam to_sql N/A N/A N/A self assertEqual builder result N/A test_where_exists_accepts_builder_instance N/A N/A self N/A N/A N/A model OrmBuilderTestModelCloseRelated N/A builder N/A N/A N/A N/A model where_exists N/A N/A OrmBuilderTestModelFarRelatedStub where foo bar to_sql N/A N/A N/A self assertEqual SELECT * FROM "orm_builder_test_model_close_relateds" WHERE EXISTS (SELECT * FROM "orm_builder_test_model_far_related_stubs" WHERE "foo" = ?) builder N/A get_builder N/A N/A self N/A N/A N/A N/A Builder N/A N/A self get_mock_query_builder N/A get_mock_model N/A N/A self N/A N/A N/A model N/A N/A N/A MockModel prepare_mock N/A model N/A get_mock_query_builder N/A N/A self N/A N/A N/A connection N/A N/A N/A MockConnection prepare_mock N/A processor N/A N/A N/A MockProcessor prepare_mock N/A builder N/A N/A N/A MockQueryBuilder connection N/A QueryGrammar processor prepare_mock N/A builder N/A N/A OratorTestModel N/A Model N/A _boot_columns N/A N/A cls N/A N/A N/A N/A N/A classmethod resolve_connection N/A N/A cls connection N/A None N/A N/A N/A flexmock N/A Connection None N/A classmethod N/A OrmBuilderTestModelFarRelatedStub N/A OratorTestModel N/A N/A N/A OrmBuilderTestModelScopeStub N/A OratorTestModel N/A approved N/A N/A self query N/A N/A N/A N/A N/A query where foo bar N/A scope N/A OrmBuilderTestModelCloseRelated N/A OratorTestModel N/A bar N/A N/A self N/A N/A N/A OrmBuilderTestModelFarRelatedStub N/A has_many N/A OrmBuilderTestModelParentStub N/A OratorTestModel N/A foo N/A N/A self N/A N/A N/A OrmBuilderTestModelCloseRelated N/A belongs_to N/A