Skip to content

Commit

Permalink
pull request review changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hklarner committed Aug 3, 2023
1 parent 1981a72 commit e0a7aa1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog/7538.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Added

- new filter category for comments in moderator dashboard: "reported by ai"
4 changes: 2 additions & 2 deletions tests/ai_reports/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pytest_factoryboy import register

from . import factories
from .factories import AiReportFactory

register(factories.AiReportFactory)
register(AiReportFactory)
4 changes: 2 additions & 2 deletions tests/ai_reports/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import factory

from adhocracy4.test import factories as a4_factories
from apps.ai_reports.models import AiReport
from tests.factories import CommentFactory


class AiReportFactory(factory.django.DjangoModelFactory):
Expand All @@ -13,4 +13,4 @@ class Meta:
category = factory.Faker("word")
explanation = factory.Faker("sentence", nb_words=6)
confidence = random.random()
comment = factory.SubFactory(a4_factories.ModuleFactory)
comment = factory.SubFactory(CommentFactory)

0 comments on commit e0a7aa1

Please sign in to comment.