nested_admin.tests package

Submodules

nested_admin.tests.base module

class BaseNestedAdminTestCase(methodName='runTest')[source]

Bases: selenosis.testcases.AdminSelenosisTestCase

add_inline(indexes=None, name=None, slug=None)[source]
click(element)[source]

A safe click method that ensures the element is scrolled into view

delete_inline(indexes)[source]
drag_and_drop_item(from_indexes, to_indexes, screenshot_hack=False)[source]
dump_js_coverage()[source]
get_field(attname, indexes=None)[source]
get_form_field_selector(attname, indexes=None)[source]
get_group(indexes=None)[source]
get_item(indexes)[source]
get_num_inlines(indexes=None)[source]
get_test_filename_base()[source]

Returns a unique filename based on the current test conditions

handle_server_error(request, exception)[source]
initialize_page()[source]
load_admin(obj=None)[source]
nested_models = None
remove_inline(indexes)[source]
root_model = None
root_urlconf = 'nested_admin.tests.urls'
save_form()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

set_field(attname, value, indexes=None)[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

undelete_inline(indexes)[source]
wait_until_element_is(element, selector, timeout=None, message=None)[source]
expected_failure_if_grappelli(func)[source]
expected_failure_if_suit(func)[source]
get_model_name(m)
skip_if_not_grappelli(func)[source]

nested_admin.tests.drag_drop module

class DragAndDropAction(test_case, from_indexes, to_indexes)[source]

Bases: object

current_position
get_mouse_position()[source]
initialize_drag()[source]
move_to_target(screenshot_hack=False)[source]
release()[source]
source
target
viewport_size
cmp(a, b)[source]
sign(x)[source]

nested_admin.tests.settings module

nested_admin.tests.urls module

nested_admin.tests.utils module

class ElementRect(element, aliases=None)[source]

Bases: object

refresh()[source]
class Position(x, y)

Bases: tuple

x

Alias for field number 0

y

Alias for field number 1

class Rect[source]

Bases: nested_admin.tests.utils.Rect

b
h
r
w
x
y
class Size[source]

Bases: nested_admin.tests.utils.Size

h
w
ensure_element_is_in_view(element)[source]
is_integer(o)[source]
is_sequence(o)[source]
is_str(o)[source]
xpath_cls(classname)[source]
xpath_item(model_name=None)[source]

Module contents