@@ -0,0 +1,924 @@
+import os%0Aimport unittest%0Afrom qpanel import app as qpanel_app%0Afrom shutil import copyfile%0A%0A%0Aclass ConfigTestClass(unittest.TestCase):%0A%0A    def setUp(self):%0A        dirname, filename = os.path.split(os.path.abspath(__file__))%0A        self.configs_dir = os.path.join(dirname, 'data', 'configs')%0A        self.default_file_config = os.path.join(%0A            self.configs_dir, os.pardir, os.pardir,%0A            os.pardir, 'config.ini')%0A%0A        qpanel_app.app.testing = True%0A        self.app = qpanel_app.app.test_client()%0A%0A    def tearDown(self):%0A        if 'QPANEL_CONFIG_FILE' in os.environ:%0A            del os.environ%5B%22QPANEL_CONFIG_FILE%22%5D%0A%0A    def test_default_run(self):%0A        os.environ%5B%22QPANEL_CONFIG_FILE%22%5D = os.path.join(%0A            self.configs_dir, 'config_default.ini')%0A%0A        rs = self.app.get('/')%0A        self.assertEqual(rs.status_code, 200)%0A        self.assertIn('REQUEST_INTERVAL = 5000', str(rs.data))%0A%0A

Add test app