Пример #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__()