Skip to content

Make average rating property of Edition model #316

Make average rating property of Edition model

Make average rating property of Edition model #316

Status Failure
Total duration 4m 38s
Artifacts

python.yml

on: pull_request
Tests (pytest)
4m 28s
Tests (pytest)
Linting (pylint)
1m 45s
Linting (pylint)
Typing (mypy)
50s
Typing (mypy)
Formatting (black; run ./bw-dev black to fix)
13s
Formatting (black; run ./bw-dev black to fix)
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
Tests (pytest): bookwyrm/tests/views/books/test_book.py#L73
BookViews.test_book_page TypeError: Field 'id' expected a number but got <class 'bookwyrm.models.book.Edition'>.
Tests (pytest): bookwyrm/tests/views/books/test_book.py#L114
BookViews.test_book_page_statuses TypeError: Field 'id' expected a number but got <class 'bookwyrm.models.book.Edition'>.
Tests (pytest): bookwyrm/tests/views/books/test_book.py#L154
BookViews.test_book_page_work_id TypeError: Field 'id' expected a number but got <class 'bookwyrm.models.book.Edition'>.
Tests (pytest): bookwyrm/tests/views/books/test_book.py#L284
BookViews.test_quotation_endposition TypeError: Field 'id' expected a number but got <class 'bookwyrm.models.book.Edition'>.
Tests (pytest)
Process completed with exit code 1.
Formatting (black; run ./bw-dev black to fix)
The `python-version` input is not set. The version of Python currently in `PATH` will be used.