assembl.tests.fixtures.base module¶
- The core fixtures that will:
create the test database
create the tables
create the schema, based on the models
drop the tables (upon completion)
create a pyramid test application
create a databse session
A fixture for a headless browser
-
assembl.tests.fixtures.base.
admin_auth_policy
(request, admin_user, testing_configurator)[source]¶ A Dummy authorization/authentication policy with the admin user logged in
-
assembl.tests.fixtures.base.
admin_user
(request, test_session)[source]¶ A User fixture with R_SYSADMIN role
-
assembl.tests.fixtures.base.
base_registry
(request)[source]¶ A Zope registry that is configured by with the testing.ini
-
assembl.tests.fixtures.base.
browser
(request)[source]¶ A Splinter-based browser fixture - used for integration testing
-
assembl.tests.fixtures.base.
db_tables
(request, empty_db)[source]¶ An SQLAlchemy Session Maker fixture with all tables based on testing.ini
-
assembl.tests.fixtures.base.
empty_db
(request, session_factory)[source]¶ An SQLAlchemy Session Maker fixture with all tables dropped
-
assembl.tests.fixtures.base.
nologin_auth_policy
(request, participant1_user, testing_configurator)[source]¶ A Dummy authorization/authentication policy with no user logged in
-
assembl.tests.fixtures.base.
participant_auth_policy
(request, participant1_user, testing_configurator)[source]¶ A Dummy authorization/authentication policy with a participant user logged in
-
assembl.tests.fixtures.base.
test_adminuser_webrequest
(request, admin_user, test_app_no_perm, base_registry)[source]¶ A Pyramid request fixture with an ADMIN user authorized
-
assembl.tests.fixtures.base.
test_app
(request, test_app_no_perm, testing_configurator, admin_auth_policy)[source]¶ A configured IdeaLoom fixture with permissions and an admin user logged in
-
assembl.tests.fixtures.base.
test_app_no_login
(request, test_app_no_perm, testing_configurator, nologin_auth_policy)[source]¶ A configured IdeaLoom fixture with permissions and no user logged in
-
assembl.tests.fixtures.base.
test_app_no_perm
(request, base_registry, db_tables)[source]¶ A configured IdeaLoom fixture with no permissions
-
assembl.tests.fixtures.base.
test_server
(request, test_app, empty_db)[source]¶ A uWSGI server fixture with permissions, admin user logged in
-
assembl.tests.fixtures.base.
test_session
(request, test_app_no_perm, db_tables)[source]¶ An SQLAlchemy Session Maker fixture (A DB connection session)- Use this session fixture for all fixture purposes