Status Code

This package contains simple status code checks for views. It is divided into 16 files for better parallelization.

Conftest

Shared configuration for status code tests.

These parametrized view tests run every view x every role combination, producing thousands of test cases. Mark the entire directory as slow so developers can skip them with -m "not slow" during local iteration.

tests.cms.views.status_code.conftest.pytest_collection_modifyitems(items: list[Item]) None[source]

Add the slow marker to every test in this directory.

Parameters:

items (list[Item])

Return type:

None

Test View Status Code_1

tests.cms.views.status_code.test_view_status_code_1.test_view_status_code_1(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_10

tests.cms.views.status_code.test_view_status_code_10.test_view_status_code_10(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_11

tests.cms.views.status_code.test_view_status_code_11.test_view_status_code_11(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str], mock_firebase_credentials: None) None[source]
Parameters:
  • login_role_user (tuple[Client, str])

  • caplog (LogCaptureFixture)

  • view_name (str)

  • kwargs (dict[str, Any])

  • post_data (dict[str, Any] | str)

  • roles (list[str])

  • mock_firebase_credentials (None)

Return type:

None

Test View Status Code_12

tests.cms.views.status_code.test_view_status_code_12.test_view_status_code_12(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_13

tests.cms.views.status_code.test_view_status_code_13.test_view_status_code_13(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_14

tests.cms.views.status_code.test_view_status_code_14.test_view_status_code_14(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_15

tests.cms.views.status_code.test_view_status_code_15.test_view_status_code_15(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_16

tests.cms.views.status_code.test_view_status_code_16.test_view_status_code_16(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_2

tests.cms.views.status_code.test_view_status_code_2.test_view_status_code_2(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_3

tests.cms.views.status_code.test_view_status_code_3.test_view_status_code_3(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_4

tests.cms.views.status_code.test_view_status_code_4.test_view_status_code_4(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_5

tests.cms.views.status_code.test_view_status_code_5.test_view_status_code_5(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str], mock_firebase_credentials: None) None[source]
Parameters:
  • login_role_user (tuple[Client, str])

  • caplog (LogCaptureFixture)

  • view_name (str)

  • kwargs (dict[str, Any])

  • post_data (dict[str, Any] | str)

  • roles (list[str])

  • mock_firebase_credentials (None)

Return type:

None

Test View Status Code_6

tests.cms.views.status_code.test_view_status_code_6.test_view_status_code_6(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_7

tests.cms.views.status_code.test_view_status_code_7.test_view_status_code_7(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_8

tests.cms.views.status_code.test_view_status_code_8.test_view_status_code_8(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None

Test View Status Code_9

tests.cms.views.status_code.test_view_status_code_9.test_view_status_code_9(login_role_user: tuple[Client, str], caplog: LogCaptureFixture, view_name: str, kwargs: dict[str, Any], post_data: dict[str, Any] | str, roles: list[str]) None[source]
Parameters:
Return type:

None