Skip to content

Refactor query methods for data source handling #10

Refactor query methods for data source handling

Refactor query methods for data source handling #10

Triggered via pull request May 15, 2024 21:00
Status Failure
Total duration 44s
Artifacts

test_api.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 95 warnings
[flake8] middleware/data_source_queries.py#L78 <126>: middleware/data_source_queries.py#L78
continuation line over-indented for hanging indent
[flake8] middleware/data_source_queries.py#L88 <126>: middleware/data_source_queries.py#L88
continuation line over-indented for hanging indent
Test API
Process completed with exit code 2.
[flake8] tests/middleware/test_archives_queries.py#L8 <401>: tests/middleware/test_archives_queries.py#L8
'tests.middleware.helper_functions.insert_test_agencies_and_sources' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L12 <401>: tests/middleware/test_archives_queries.py#L12
'tests.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L12 <401>: tests/middleware/test_archives_queries.py#L12
'tests.middleware.fixtures.db_cursor' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L12 <401>: tests/middleware/test_archives_queries.py#L12
'tests.middleware.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_archives_queries.py#L20 <811>: tests/middleware/test_archives_queries.py#L20
redefinition of unused 'dev_db_connection' from line 12
[flake8] tests/middleware/test_archives_queries.py#L23 <205>: tests/middleware/test_archives_queries.py#L23
1 blank line required between summary line and description
[flake8] tests/middleware/test_archives_queries.py#L52 <811>: tests/middleware/test_archives_queries.py#L52
redefinition of unused 'connection_with_test_data' from line 12
[flake8] tests/middleware/test_archives_queries.py#L54 <205>: tests/middleware/test_archives_queries.py#L54
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L5 <401>: tests/middleware/test_data_source_queries.py#L5
'tests.resources.app_test_data.DATA_SOURCES_ID_QUERY_RESULTS' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L6 <401>: tests/middleware/test_data_source_queries.py#L6
'middleware.data_source_queries.DATA_SOURCES_APPROVED_COLUMNS' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L14 <401>: tests/middleware/test_data_source_queries.py#L14
'tests.middleware.helper_functions.has_expected_keys' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L18 <401>: tests/middleware/test_data_source_queries.py#L18
'tests.middleware.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L18 <401>: tests/middleware/test_data_source_queries.py#L18
'tests.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_data_source_queries.py#L23 <205>: tests/middleware/test_data_source_queries.py#L23
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L32 <811>: tests/middleware/test_data_source_queries.py#L32
redefinition of unused 'connection_with_test_data' from line 18
[flake8] tests/middleware/test_data_source_queries.py#L35 <205>: tests/middleware/test_data_source_queries.py#L35
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L54 <811>: tests/middleware/test_data_source_queries.py#L54
redefinition of unused 'connection_with_test_data' from line 18
[flake8] tests/middleware/test_data_source_queries.py#L57 <205>: tests/middleware/test_data_source_queries.py#L57
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L75 <811>: tests/middleware/test_data_source_queries.py#L75
redefinition of unused 'connection_with_test_data' from line 18
[flake8] tests/middleware/test_data_source_queries.py#L77 <205>: tests/middleware/test_data_source_queries.py#L77
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L96 <811>: tests/middleware/test_data_source_queries.py#L96
redefinition of unused 'connection_with_test_data' from line 18
[flake8] tests/middleware/test_data_source_queries.py#L98 <205>: tests/middleware/test_data_source_queries.py#L98
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L111 <811>: tests/middleware/test_data_source_queries.py#L111
redefinition of unused 'connection_with_test_data' from line 18
[flake8] tests/middleware/test_data_source_queries.py#L114 <205>: tests/middleware/test_data_source_queries.py#L114
1 blank line required between summary line and description
[flake8] tests/middleware/test_data_source_queries.py#L135 <205>: tests/middleware/test_data_source_queries.py#L135
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.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_login_queries.py#L12 <401>: tests/middleware/test_login_queries.py#L12
'tests.middleware.fixtures.db_cursor' 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#L11 <401>: tests/middleware/test_quick_search_query.py#L11
'tests.middleware.helper_functions.insert_test_agencies_and_sources' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L16 <401>: tests/middleware/test_quick_search_query.py#L16
'tests.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L16 <401>: tests/middleware/test_quick_search_query.py#L16
'tests.middleware.fixtures.db_cursor' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L16 <401>: tests/middleware/test_quick_search_query.py#L16
'tests.middleware.fixtures.connection_with_test_data' imported but unused
[flake8] tests/middleware/test_quick_search_query.py#L24 <811>: tests/middleware/test_quick_search_query.py#L24
redefinition of unused 'connection_with_test_data' from line 16
[flake8] tests/middleware/test_quick_search_query.py#L26 <205>: tests/middleware/test_quick_search_query.py#L26
1 blank line required between summary line and description
[flake8] tests/middleware/test_quick_search_query.py#L40 <811>: tests/middleware/test_quick_search_query.py#L40
redefinition of unused 'connection_with_test_data' from line 16
[flake8] tests/middleware/test_quick_search_query.py#L66 <811>: tests/middleware/test_quick_search_query.py#L66
redefinition of unused 'connection_with_test_data' from line 16
[flake8] tests/middleware/test_reset_token_queries.py#L15 <401>: tests/middleware/test_reset_token_queries.py#L15
'tests.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_reset_token_queries.py#L15 <401>: tests/middleware/test_reset_token_queries.py#L15
'tests.middleware.fixtures.db_cursor' imported but unused
[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.middleware.fixtures.dev_db_connection' imported but unused
[flake8] tests/middleware/test_user_queries.py#L5 <401>: tests/middleware/test_user_queries.py#L5
'tests.middleware.fixtures.db_cursor' imported but unused
[flake8] tests/middleware/test_user_queries.py#L8 <811>: tests/middleware/test_user_queries.py#L8
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
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/.