Skip to content

Commit

Permalink
tweak test_webui
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 28, 2012
1 parent 4fb3b92 commit 0036286
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/test_webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ class CnnWebUiTest(BasicWebUiTest):
if redbot_uri:
unittest.main()
else:
test_port = 8080
redbot_uri = "http://localhost:%s/" % test_port
import sys
sys.path.insert(0, "deploy")
import webui
import thor
def cb():
suite = unittest.TestLoader()
suite.loadTestsFromTestCase(BasicWebUiTest)
suite.loadTestsFromTestCase(CnnWebUiTest)
unittest.TextTestRunner(verbosity=2).run(suite)
thor.loop.stop()
webui.standalone_main(8080, "deploy/static", cb)
redbot_uri = "http://localhost:8080/"

unittest.main()
thor.stop()
webui.standalone_main(test_port, "deploy/static", cb)

0 comments on commit 0036286

Please sign in to comment.