SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit caa37fdf authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add factories for all comments models

parent 9e8b169c
No related branches found
No related tags found
No related merge requests found
__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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment