init project

This commit is contained in:
alphardex
2019-01-16 22:45:05 +08:00
commit d9f4136fa4
32 changed files with 1044 additions and 0 deletions

15
tests/base.py Normal file
View File

@@ -0,0 +1,15 @@
import unittest
from flask import url_for
from rsshub import create_app
class BaseTestCase(unittest.TestCase):
def setUp(self):
app = create_app('testing')
self.context = app.test_request_context()
self.context.push()
self.client = app.test_client()
self.runner = app.test_cli_runner()
def tearDown(self):
self.context.pop()