Skip to content

Refactor code to use managed_cursor context manager #8

Refactor code to use managed_cursor context manager

Refactor code to use managed_cursor context manager #8

Triggered via pull request May 15, 2024 07:18
Status Failure
Total duration 45s
Artifacts

test_api.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 102 warnings
[flake8] tests/fixtures.py#L77 <722>: tests/fixtures.py#L77
do not use bare 'except'
[flake8] tests/fixtures.py#L81 <302>: tests/fixtures.py#L81
expected 2 blank lines, found 1
Test API
Process completed with exit code 1.
[flake8] resources/RequestResetPassword.py#L32 <841>: resources/RequestResetPassword.py#L32
local variable 'id' is assigned to but never used
[flake8] resources/SearchTokens.py#L56 <541>: resources/SearchTokens.py#L56
f-string is missing placeholders
[flake8] tests/fixtures.py#L82 <103>: tests/fixtures.py#L82
Missing docstring in public function
[flake8] tests/middleware/test_archives_queries.py#L11 <401>: tests/middleware/test_archives_queries.py#L11
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L11 <401>: tests/middleware/test_archives_queries.py#L11
'tests.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L11 <401>: tests/middleware/test_archives_queries.py#L11
'tests.fixtures.cursor_with_test_data' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L22 <205>: tests/middleware/test_archives_queries.py#L22
1 blank line required between summary line and description
[flake8] tests/middleware/test_archives_queries.py#L50 <811>: tests/middleware/test_archives_queries.py#L50
redefinition of unused 'cursor_with_test_data' from line 11
[flake8] tests/middleware/test_archives_queries.py#L52 <205>: tests/middleware/test_archives_queries.py#L52
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L17 <401>: tests/middleware/test_data_source_queries.py#L17
'tests.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L17 <401>: tests/middleware/test_data_source_queries.py#L17
'tests.fixtures.cursor_with_test_data' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L22 <205>: tests/middleware/test_data_source_queries.py#L22
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L31 <811>: tests/middleware/test_data_source_queries.py#L31
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L34 <205>: tests/middleware/test_data_source_queries.py#L34
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L53 <811>: tests/middleware/test_data_source_queries.py#L53
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L56 <205>: tests/middleware/test_data_source_queries.py#L56
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L74 <811>: tests/middleware/test_data_source_queries.py#L74
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L76 <205>: tests/middleware/test_data_source_queries.py#L76
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L95 <811>: tests/middleware/test_data_source_queries.py#L95
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L97 <205>: tests/middleware/test_data_source_queries.py#L97
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L110 <811>: tests/middleware/test_data_source_queries.py#L110
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L113 <205>: tests/middleware/test_data_source_queries.py#L113
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L134 <811>: tests/middleware/test_data_source_queries.py#L134
redefinition of unused 'cursor_with_test_data' from line 17
[flake8] tests/middleware/test_data_source_queries.py#L137 <205>: tests/middleware/test_data_source_queries.py#L137
1 blank line required between summary line and description
[flake8] tests/middleware/test_login_queries.py#L12 <401>: tests/middleware/test_login_queries.py#L12
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_login_queries.py#L16 <205>: tests/middleware/test_login_queries.py#L16
1 blank line required between summary line and description
[flake8] tests/middleware/test_login_queries.py#L31 <205>: tests/middleware/test_login_queries.py#L31
1 blank line required between summary line and description
[flake8] tests/middleware/test_login_queries.py#L40 <841>: tests/middleware/test_login_queries.py#L40
local variable 'mock_getenv' is assigned to but never used
[flake8] tests/middleware/test_login_queries.py#L48 <205>: tests/middleware/test_login_queries.py#L48
1 blank line required between summary line and description
[flake8] tests/middleware/test_quick_search_query.py#L12 <401>: tests/middleware/test_quick_search_query.py#L12
'tests.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L12 <401>: tests/middleware/test_quick_search_query.py#L12
'tests.fixtures.cursor_with_test_data' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L18 <811>: tests/middleware/test_quick_search_query.py#L18
redefinition of unused 'cursor_with_test_data' from line 12
[flake8] tests/middleware/test_quick_search_query.py#L20 <205>: tests/middleware/test_quick_search_query.py#L20
1 blank line required between summary line and description
[flake8] tests/middleware/test_quick_search_query.py#L34 <811>: tests/middleware/test_quick_search_query.py#L34
redefinition of unused 'cursor_with_test_data' from line 12
[flake8] tests/middleware/test_quick_search_query.py#L59 <811>: tests/middleware/test_quick_search_query.py#L59
redefinition of unused 'cursor_with_test_data' from line 12
[flake8] tests/middleware/test_reset_token_queries.py#L19 <205>: tests/middleware/test_reset_token_queries.py#L19
1 blank line required between summary line and description
[flake8] tests/middleware/test_reset_token_queries.py#L32 <205>: tests/middleware/test_reset_token_queries.py#L32
1 blank line required between summary line and description
[flake8] tests/middleware/test_reset_token_queries.py#L51 <205>: tests/middleware/test_reset_token_queries.py#L51
1 blank line required between summary line and description
[flake8] tests/middleware/test_user_queries.py#L5 <401>: tests/middleware/test_user_queries.py#L5
'tests.fixtures.db_cursor' imported but unused
[flake8] tests/middleware/test_user_queries.py#L5 <401>: tests/middleware/test_user_queries.py#L5
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_user_queries.py#L9 <811>: tests/middleware/test_user_queries.py#L9
redefinition of unused 'db_cursor' from line 5
[flake8] tests/resources/app_test.py#L1 <100>: tests/resources/app_test.py#L1
Missing docstring in public module
[flake8] tests/resources/app_test.py#L19 <103>: tests/resources/app_test.py#L19
Missing docstring in public function
[flake8] tests/resources/app_test.py#L25 <103>: tests/resources/app_test.py#L25
Missing docstring in public function
[flake8] tests/resources/app_test.py#L30 <103>: tests/resources/app_test.py#L30
Missing docstring in public function
[flake8] tests/resources/app_test.py#L35 <103>: tests/resources/app_test.py#L35
Missing docstring in public function
[flake8] tests/resources/app_test.py#L52 <103>: tests/resources/app_test.py#L52
Missing docstring in public function
[flake8] tests/resources/app_test.py#L58 <103>: tests/resources/app_test.py#L58
Missing docstring in public function
[flake8] tests/resources/app_test.py#L64 <103>: tests/resources/app_test.py#L64
Missing docstring in public function
[flake8] tests/resources/app_test.py#L160 <103>: tests/resources/app_test.py#L160
Missing docstring in public function
[flake8] tests/utilities/test_managed_cursor.py#L14 <205>: tests/utilities/test_managed_cursor.py#L14
1 blank line required between summary line and description
[flake8] tests/utilities/test_managed_cursor.py#L31 <631>: tests/utilities/test_managed_cursor.py#L31
assertion is always true, perhaps remove parentheses?
[flake8] tests/utilities/test_managed_cursor.py#L39 <205>: tests/utilities/test_managed_cursor.py#L39
1 blank line required between summary line and description
[flake8] tests/utilities/test_managed_cursor.py#L51 <631>: tests/utilities/test_managed_cursor.py#L51
assertion is always true, perhaps remove parentheses?
[flake8] utilities/managed_cursor.py#L1 <100>: utilities/managed_cursor.py#L1
Missing docstring in public module
Test API
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.