Fix tests

This commit is contained in:
Andrew Godwin 2022-11-26 12:24:38 -07:00
parent db88c733b4
commit 98cd3f5b0f
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ jobs:
python -m pip install -r requirements-dev.txt
- name: Run pytest
env:
TAKAHE_DATABASE_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres"
TAKAHE_DATABASE_SERVER: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres"
TAKAHE_ENVIRONMENT: "test"
TAKAHE_SECRET_KEY: "testing_secret"
TAKAHE_MAIN_DOMAIN: "example.com"

View File

@ -68,6 +68,7 @@ class InboxMessageAdmin(admin.ModelAdmin):
list_display = ["id", "state", "state_attempted", "message_type", "message_actor"]
search_fields = ["message"]
actions = ["reset_state"]
readonly_fields = ["state_changed"]
@admin.action(description="Reset State")
def reset_state(self, request, queryset):