Skip to content

chore(tests): include AAA (Arrange, Act, Assert) pattern

aea9c50
Select commit
Loading
Failed to load commit list.
Merged

refactor(app)!: split requirements files #318

chore(tests): include AAA (Arrange, Act, Assert) pattern
aea9c50
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Codeac.io / Codeac Code Quality succeeded Mar 24, 2025 in 20h 29m 42s

Codeac Code Quality

This PR contains 15 errors and 4 warnings.

Annotations

Check failure on line 6 in main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi'

Check failure on line 7 in main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi_cache'

Check failure on line 8 in main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi_cache.backends.inmemory'

Check failure on line 7 in data/player_database.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy.ext.asyncio'

Check failure on line 8 in data/player_database.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy.orm'

Check failure on line 6 in routes/player_route.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi'

Check failure on line 7 in routes/player_route.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy.ext.asyncio'

Check failure on line 8 in routes/player_route.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi_cache'

Check failure on line 9 in routes/player_route.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi_cache.decorator'

Check failure on line 5 in schemas/player_schema.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy'

Check failure on line 5 in services/player_service.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy'

Check failure on line 6 in services/player_service.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy.ext.asyncio'

Check failure on line 7 in services/player_service.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'sqlalchemy.exc'

Check failure on line 2 in tests/conftest.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'pytest'

Check failure on line 3 in tests/conftest.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

import-error

Unable to import 'fastapi.testclient'

Check warning on line 11 in tests/conftest.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

missing-function-docstring

Missing function or method docstring

Check warning on line 20 in tests/player_stub.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

invalid-name

Attribute name "id" doesn't conform to snake_case naming style

Check warning on line 8 in tests/player_stub.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

invalid-name

Argument name "id" doesn't conform to snake_case naming style

Check warning on line 8 in tests/player_stub.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

redefined-builtin

Redefining built-in 'id'

Check warning on line 22 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning on line 38 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning on line 54 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning on line 68 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning on line 83 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning on line 99 in tests/test_main.py

See this annotation in the file changed.

@codeac-io codeac-io / Codeac Code Quality

B101

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.