mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 02:31:00 +00:00
Fix tests
This commit is contained in:
parent
db88c733b4
commit
98cd3f5b0f
2 changed files with 2 additions and 1 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
python -m pip install -r requirements-dev.txt
|
python -m pip install -r requirements-dev.txt
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
env:
|
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_ENVIRONMENT: "test"
|
||||||
TAKAHE_SECRET_KEY: "testing_secret"
|
TAKAHE_SECRET_KEY: "testing_secret"
|
||||||
TAKAHE_MAIN_DOMAIN: "example.com"
|
TAKAHE_MAIN_DOMAIN: "example.com"
|
||||||
|
|
|
@ -68,6 +68,7 @@ class InboxMessageAdmin(admin.ModelAdmin):
|
||||||
list_display = ["id", "state", "state_attempted", "message_type", "message_actor"]
|
list_display = ["id", "state", "state_attempted", "message_type", "message_actor"]
|
||||||
search_fields = ["message"]
|
search_fields = ["message"]
|
||||||
actions = ["reset_state"]
|
actions = ["reset_state"]
|
||||||
|
readonly_fields = ["state_changed"]
|
||||||
|
|
||||||
@admin.action(description="Reset State")
|
@admin.action(description="Reset State")
|
||||||
def reset_state(self, request, queryset):
|
def reset_state(self, request, queryset):
|
||||||
|
|
Loading…
Reference in a new issue