websauna.tests.crud.test_autoform module

Test form autogeneration and CRUD.

websauna.tests.crud.test_autoform.registry(request, tutorial_app)[source]

Run a web server with tutorial installed.

websauna.tests.crud.test_autoform.test_add_choice_choose_no_question(browser, registry, web_server, dbsession)[source]
websauna.tests.crud.test_autoform.test_add_choice_no_question(browser, registry, web_server, dbsession)[source]

Add one choice, no questions available.

websauna.tests.crud.test_autoform.test_add_choice_question(browser, registry, web_server, dbsession)[source]
websauna.tests.crud.test_autoform.test_add_question(browser, registry, web_server, dbsession)[source]

Adding questions should be succesful.

websauna.tests.crud.test_autoform.test_edit_choice_question(browser, registry, web_server, dbsession)[source]

Change choice’s assigned question in edit.

websauna.tests.crud.test_autoform.test_edit_choice_remove_question(browser, registry, web_server, dbsession)[source]

Editing choice allows us to reset question value back to null.

websauna.tests.crud.test_autoform.test_question_delete(browser, registry, web_server, dbsession)[source]

Delete question and make sure it deletes related choices..

websauna.tests.crud.test_autoform.test_question_listing(browser, registry, web_server, dbsession)[source]

Question listing shows question text.

websauna.tests.crud.test_autoform.test_question_shows_choices(browser, registry, web_server, dbsession)[source]

If question has active choices they are shown on Show screen, albeit not editable.

websauna.tests.crud.test_autoform.tutorial_app(request, paster_config)[source]

Custom WSGI app with travesal points for sitemap enabled.

websauna.tests.crud.test_autoform.web_server(request, tutorial_app)[source]

Run a web server with tutorial installed.