Skip to content

Mc issue 352 search endpoint #19

Mc issue 352 search endpoint

Mc issue 352 search endpoint #19

Triggered via pull request July 10, 2024 00:45
Status Failure
Total duration 49s
Artifacts

run_pytest.yml

on: pull_request
Run Pytest
40s
Run Pytest
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 239 warnings
[flake8] database_client/database_client.py#L271 <721>: database_client/database_client.py#L271
do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
[flake8] middleware/agencies.py#L8 <302>: middleware/agencies.py#L8
expected 2 blank lines, found 1
[flake8] tests/fixtures.py#L123 <302>: tests/fixtures.py#L123
expected 2 blank lines, found 1
[flake8] tests/fixtures.py#L132 <302>: tests/fixtures.py#L132
expected 2 blank lines, found 1
[flake8] tests/helper_functions.py#L64 <302>: tests/helper_functions.py#L64
expected 2 blank lines, found 1
[flake8] utilities/enums.py#L3 <302>: utilities/enums.py#L3
expected 2 blank lines, found 1
Run Pytest
Process completed with exit code 1.
[flake8] database_client/constants.py#L1 <100>: database_client/constants.py#L1
Missing docstring in public module
[flake8] database_client/database_client.py#L3 <401>: database_client/database_client.py#L3
'contextlib.contextmanager' imported but unused
[flake8] database_client/database_client.py#L9 <401>: database_client/database_client.py#L9
'psycopg2.extras.DictCursor' imported but unused
[flake8] database_client/database_client.py#L12 <401>: database_client/database_client.py#L12
'middleware.custom_exceptions.TokenNotFoundError' imported but unused
[flake8] database_client/database_client.py#L80 <205>: database_client/database_client.py#L80
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L92 <205>: database_client/database_client.py#L92
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L103 <205>: database_client/database_client.py#L103
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L177 <205>: database_client/database_client.py#L177
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L207 <205>: database_client/database_client.py#L207
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L218 <205>: database_client/database_client.py#L218
1 blank line required between summary line and description
[flake8] database_client/database_client.py#L233 <202>: database_client/database_client.py#L233
No blank lines allowed after function docstring
[flake8] database_client/database_client.py#L401 <205>: database_client/database_client.py#L401
1 blank line required between summary line and description
[flake8] database_client/dynamic_query_constructor.py#L17 <205>: database_client/dynamic_query_constructor.py#L17
1 blank line required between summary line and description
[flake8] database_client/result_formatter.py#L14 <205>: database_client/result_formatter.py#L14
1 blank line required between summary line and description
[flake8] database_client/result_formatter.py#L23 <205>: database_client/result_formatter.py#L23
1 blank line required between summary line and description
[flake8] middleware/login_queries.py#L108 <103>: middleware/login_queries.py#L108
Missing docstring in public function
[flake8] middleware/search_logic.py#L1 <100>: middleware/search_logic.py#L1
Missing docstring in public module
[flake8] middleware/search_logic.py#L7 <401>: middleware/search_logic.py#L7
'database_client.result_formatter.ResultFormatter' imported but unused
[flake8] middleware/search_logic.py#L11 <103>: middleware/search_logic.py#L11
Missing docstring in public function
[flake8] middleware/security.py#L83 <103>: middleware/security.py#L83
Missing docstring in public function
[flake8] middleware/security.py#L99 <103>: middleware/security.py#L99
Missing docstring in public function
[flake8] resources/DataSources.py#L1 <100>: resources/DataSources.py#L1
Missing docstring in public module
[flake8] resources/DataSources.py#L1 <401>: resources/DataSources.py#L1
'http.HTTPStatus' imported but unused
[flake8] resources/DataSources.py#L3 <401>: resources/DataSources.py#L3
'flask.make_response' imported but unused
[flake8] resources/PsycopgResource.py#L1 <100>: resources/PsycopgResource.py#L1
Missing docstring in public module
[flake8] resources/PsycopgResource.py#L63 <401>: resources/PsycopgResource.py#L63
First line should be in imperative mood; try rephrasing
[flake8] resources/Search.py#L1 <100>: resources/Search.py#L1
Missing docstring in public module
[flake8] resources/Search.py#L10 <205>: resources/Search.py#L10
1 blank line required between summary line and description
[flake8] resources/Search.py#L10 <400>: resources/Search.py#L10
First line should end with a period
[flake8] resources/Search.py#L17 <205>: resources/Search.py#L17
1 blank line required between summary line and description
[flake8] resources/Search.py#L17 <400>: resources/Search.py#L17
First line should end with a period
[flake8] resources/Search.py#L17 <401>: resources/Search.py#L17
First line should be in imperative mood
[flake8] tests/fixtures.py#L125 <205>: tests/fixtures.py#L125
1 blank line required between summary line and description
[flake8] tests/fixtures.py#L125 <400>: tests/fixtures.py#L125
First line should end with a period
[flake8] tests/fixtures.py#L125 <401>: tests/fixtures.py#L125
First line should be in imperative mood
[flake8] tests/fixtures.py#L134 <200>: tests/fixtures.py#L134
One-line docstring should fit on one line with quotes
[flake8] tests/fixtures.py#L134 <401>: tests/fixtures.py#L134
First line should be in imperative mood
[flake8] tests/helper_functions.py#L64 <103>: tests/helper_functions.py#L64
Missing docstring in public function
[flake8] tests/integration/test_agencies.py#L5 <401>: tests/integration/test_agencies.py#L5
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/integration/test_agencies.py#L5 <401>: tests/integration/test_agencies.py#L5
'tests.fixtures.client_with_db' imported but unused
[flake8] tests/integration/test_search.py#L2 <401>: tests/integration/test_search.py#L2
'tests.fixtures.client_with_db' imported but unused
[flake8] tests/integration/test_search.py#L2 <401>: tests/integration/test_search.py#L2
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/integration/test_search.py#L2 <401>: tests/integration/test_search.py#L2
'tests.fixtures.bypass_api_required' imported but unused
[flake8] tests/integration/test_search.py#L4 <811>: tests/integration/test_search.py#L4
redefinition of unused 'client_with_db' from line 2
[flake8] tests/integration/test_search.py#L4 <811>: tests/integration/test_search.py#L4
redefinition of unused 'bypass_api_required' from line 2
[flake8] tests/middleware/test_user_queries.py#L8 <401>: tests/middleware/test_user_queries.py#L8
'tests.helper_functions.create_test_user' imported but unused
[flake8] tests/resources/test_DataSources.py#L68 <811>: tests/resources/test_DataSources.py#L68
redefinition of unused 'client_with_mock_db' from line 4
[flake8] tests/resources/test_DataSources.py#L68 <811>: tests/resources/test_DataSources.py#L68
redefinition of unused 'bypass_api_required' from line 4
[flake8] tests/resources/test_Search.py#L3 <401>: tests/resources/test_Search.py#L3
'unittest.mock.MagicMock' imported but unused
[flake8] tests/resources/test_Search.py#L6 <401>: tests/resources/test_Search.py#L6
'tests.fixtures.client_with_mock_db' imported but unused
[flake8] tests/resources/test_Search.py#L6 <401>: tests/resources/test_Search.py#L6
'tests.fixtures.bypass_api_required' imported but unused
[flake8] tests/resources/test_Search.py#L27 <811>: tests/resources/test_Search.py#L27
redefinition of unused 'client_with_mock_db' from line 6
[flake8] tests/resources/test_Search.py#L27 <100>: tests/resources/test_Search.py#L27
Unused argument 'bypass_api_required'
[flake8] tests/resources/test_Search.py#L27 <811>: tests/resources/test_Search.py#L27
redefinition of unused 'bypass_api_required' from line 6
[flake8] tests/test_database_client.py#L10 <401>: tests/test_database_client.py#L10
'middleware.custom_exceptions.TokenNotFoundError' imported but unused
[flake8] tests/test_database_client.py#L15 <401>: tests/test_database_client.py#L15
'tests.fixtures.live_database_client' imported but unused
[flake8] tests/test_database_client.py#L15 <401>: tests/test_database_client.py#L15
'tests.fixtures.dev_db_connection' imported but unused
[flake8] tests/test_database_client.py#L15 <401>: tests/test_database_client.py#L15
'tests.fixtures.db_cursor' imported but unused
[flake8] tests/test_database_client.py#L15 <401>: tests/test_database_client.py#L15
'tests.fixtures.xylonslyvania_test_data' imported but unused
[flake8] tests/test_database_client.py#L16 <401>: tests/test_database_client.py#L16
'tests.helper_functions.insert_test_agencies_and_sources' imported but unused
[flake8] tests/test_database_client.py#L20 <401>: tests/test_database_client.py#L20
'tests.helper_scripts.test_data_generator.TestDataGenerator' imported but unused
[flake8] tests/test_database_client.py#L24 <103>: tests/test_database_client.py#L24
Missing docstring in public function
[flake8] tests/test_database_client.py#L24 <811>: tests/test_database_client.py#L24
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L34 <103>: tests/test_database_client.py#L34
Missing docstring in public function
[flake8] tests/test_database_client.py#L34 <811>: tests/test_database_client.py#L34
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L51 <103>: tests/test_database_client.py#L51
Missing docstring in public function
[flake8] tests/test_database_client.py#L51 <811>: tests/test_database_client.py#L51
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L62 <103>: tests/test_database_client.py#L62
Missing docstring in public function
[flake8] tests/test_database_client.py#L62 <811>: tests/test_database_client.py#L62
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L76 <103>: tests/test_database_client.py#L76
Missing docstring in public function
[flake8] tests/test_database_client.py#L76 <811>: tests/test_database_client.py#L76
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L99 <103>: tests/test_database_client.py#L99
Missing docstring in public function
[flake8] tests/test_database_client.py#L99 <811>: tests/test_database_client.py#L99
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L112 <811>: tests/test_database_client.py#L112
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L125 <811>: tests/test_database_client.py#L125
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L141 <811>: tests/test_database_client.py#L141
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L161 <811>: tests/test_database_client.py#L161
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L177 <811>: tests/test_database_client.py#L177
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L193 <811>: tests/test_database_client.py#L193
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L205 <811>: tests/test_database_client.py#L205
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L210 <811>: tests/test_database_client.py#L210
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L224 <811>: tests/test_database_client.py#L224
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L237 <811>: tests/test_database_client.py#L237
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L269 <811>: tests/test_database_client.py#L269
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L289 <811>: tests/test_database_client.py#L289
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L309 <811>: tests/test_database_client.py#L309
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L328 <811>: tests/test_database_client.py#L328
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L352 <811>: tests/test_database_client.py#L352
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L380 <811>: tests/test_database_client.py#L380
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L399 <811>: tests/test_database_client.py#L399
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L422 <811>: tests/test_database_client.py#L422
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L423 <205>: tests/test_database_client.py#L423
1 blank line required between summary line and description
[flake8] tests/test_database_client.py#L474 <811>: tests/test_database_client.py#L474
redefinition of unused 'live_database_client' from line 15
[flake8] tests/test_database_client.py#L474 <100>: tests/test_database_client.py#L474
Unused argument 'xylonslyvania_test_data'
[flake8] tests/test_database_client.py#L474 <811>: tests/test_database_client.py#L474
redefinition of unused 'xylonslyvania_test_data' from line 15
[flake8] utilities/enums.py#L1 <100>: utilities/enums.py#L1
Missing docstring in public module
[flake8] utilities/enums.py#L4 <200>: utilities/enums.py#L4
One-line docstring should fit on one line with quotes
[flake8] utilities/enums.py#L4 <204>: utilities/enums.py#L4
1 blank line required after class docstring
Run Pytest
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/