Mercurial > p > roundup > code
diff test/test_rest.py @ 5586:8f2fbc88e155 REST-rebased
Fixed code convention
committer: Ralf Schlatterbeck <rsc@runtux.com>
| author | Chau Nguyen <dangchau1991@yahoo.com> |
|---|---|
| date | Wed, 30 Jan 2019 10:26:35 +0100 |
| parents | 8725c09802b8 |
| children | 6b3a9655a7d9 |
line wrap: on
line diff
--- a/test/test_rest.py Wed Jan 30 10:26:35 2019 +0100 +++ b/test/test_rest.py Wed Jan 30 10:26:35 2019 +0100 @@ -1,17 +1,19 @@ -import unittest, os, shutil, errno, sys, difflib, cgi, re +import unittest +import os +import shutil +import errno -from xmlrpclib import MultiCall from roundup.cgi.exceptions import * -from roundup import init, instance, password, hyperdb, date +from roundup import password, hyperdb from roundup.rest import RestfulInstance from roundup.backends import list_backends -from roundup.hyperdb import String -from roundup.cgi import TranslationService, client +from roundup.cgi import client import db_test_base NEEDS_INSTANCE = 1 + class TestCase(unittest.TestCase): backend = None @@ -313,6 +315,7 @@ self.assertEqual(len(results['attributes']['nosy']), 0) self.assertEqual(results['attributes']['nosy'], []) + def test_suite(): suite = unittest.TestSuite() for l in list_backends():
