mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
More tests using doctests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import imp
|
||||
import doctest
|
||||
import os
|
||||
import unittest
|
||||
os.environ['PANORAMIX_CONFIG'] = 'tests.panoramix_test_config'
|
||||
@@ -43,6 +44,13 @@ class LiveTest(TestCase):
|
||||
for dash in db.session.query(models.Dashboard).all():
|
||||
self.client.get(dash.url)
|
||||
|
||||
def test_doctests(self):
|
||||
modules = [utils]
|
||||
for mod in modules:
|
||||
failed, tests = doctest.testmod(mod)
|
||||
if failed:
|
||||
raise Exception("Failed a doctest")
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user