示例#1
0
 def test_source_string_representation(self):
     test_source, _ = db_helper.init_source()
     test_source.__repr__()
示例#2
0
 def test_reply_string_representation(self):
     journalist, _ = db_helper.init_journalist()
     source, _ = db_helper.init_source()
     db_helper.reply(journalist, source, 2)
     test_reply = Reply.query.first()
     test_reply.__repr__()
示例#3
0
    def test_submission_string_representation(self):
        source, _ = db_helper.init_source()
        db_helper.submit(source, 2)

        test_submission = Submission.query.first()
        test_submission.__repr__()
示例#4
0
 def test_source_string_representation(self):
     test_source, _ = db_helper.init_source()
     test_source.__repr__()
示例#5
0
 def test_reply_string_representation(self):
     journalist, _ = db_helper.init_journalist()
     source, _ = db_helper.init_source()
     replies = db_helper.reply(journalist, source, 2)
     test_reply = Reply.query.first()
     test_reply.__repr__()
示例#6
0
    def test_submission_string_representation(self):
        source, _ = db_helper.init_source()
        submissions = db_helper.submit(source, 2)

        test_submission = Submission.query.first()
        test_submission.__repr__()