Skip to content

add test for resolving users with aliases #302

add test for resolving users with aliases

add test for resolving users with aliases #302

Triggered via pull request September 8, 2024 08:15
Status Failure
Total duration 4m 54s
Artifacts

python.yml

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

Annotations

9 errors and 1 warning
Tests (pytest): bookwyrm/tests/activitypub/test_person.py#L24
Person.test_user_to_model django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (5, 8, null).
Tests (pytest): bookwyrm/tests/models/test_fields.py#L384
ModelFields.test_many_to_many_field_from_activity django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (1, 18, null).
Tests (pytest): bookwyrm/tests/test_signing.py#L165
Signature.test_key_needs_refresh django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (5, 68, null).
Tests (pytest): bookwyrm/tests/test_signing.py#L136
Signature.test_remote_signer django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (6, 69, null).
Tests (pytest): bookwyrm/tests/models/test_fields.py#L307
ModelFields.test_foreign_key_from_activity_dict django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (1, 102, null).
Tests (pytest): bookwyrm/tests/models/test_fields.py#L330
ModelFields.test_foreign_key_from_activity_dict_existing django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (2, 103, null).
Tests (pytest): bookwyrm/tests/models/test_fields.py#L288
ModelFields.test_foreign_key_from_activity_str django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (3, 106, null).
Tests (pytest): bookwyrm/tests/views/test_helpers.py#L192
ViewsHelpers.test_handle_remote_webfinger_load_user django.db.utils.IntegrityError: null value in column "to_user_id" of relation "bookwyrm_user_also_known_as" violates not-null constraint DETAIL: Failing row contains (4, 132, null).
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.