From caa37fdfca93d8860354066a2bff5255ce51286d Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 14 Nov 2023 14:15:05 +0100 Subject: [PATCH] add factories for all comments models --- .../comments/tests/test_factories.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scipost_django/comments/tests/test_factories.py diff --git a/scipost_django/comments/tests/test_factories.py b/scipost_django/comments/tests/test_factories.py new file mode 100644 index 000000000..e0d68da63 --- /dev/null +++ b/scipost_django/comments/tests/test_factories.py @@ -0,0 +1,19 @@ +__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)" +__license__ = "AGPL v3" + +from django.test import TestCase +from ..factories import ReplyCommentFactory, SubmissionCommentFactory + + +class TestReplyCommentFactory(TestCase): + def test_can_create_reply_comments(self): + reply_comment = ReplyCommentFactory() + + self.assertIsNotNone(reply_comment) + + +class TestSubmissionCommentFactory(TestCase): + def test_can_create_submission_comments(self): + submission_comment = SubmissionCommentFactory() + + self.assertIsNotNone(submission_comment) -- GitLab