Make unit tests pass again with new code layout

Previously when moving code into elastic_recheck I had old pyc files
lying around which tricked my computer into thinking things worked.

In unit tests make sure to do 'from elastic_recheck'

Change-Id: Ib6ddfd9ee1099e0047d94c0590392b5d3336a450
This commit is contained in:
Joe Gordon 2013-09-27 15:22:11 -07:00
parent 4c4fe9fbc6
commit 02387f06fe
4 changed files with 6 additions and 4 deletions

View File

@ -12,9 +12,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import elasticRecheck
import testtools import testtools
from elastic_recheck import elasticRecheck
class TestClassifier(testtools.TestCase): class TestClassifier(testtools.TestCase):

View File

@ -16,7 +16,7 @@ import ConfigParser
import gerritlib import gerritlib
import testtools import testtools
import elasticRecheck from elastic_recheck import elasticRecheck
class TestGerritComment(testtools.TestCase): class TestGerritComment(testtools.TestCase):

View File

@ -19,7 +19,7 @@ import json
from launchpadlib import launchpad from launchpadlib import launchpad
import testtools import testtools
import elasticRecheck from elastic_recheck import elasticRecheck
LPCACHEDIR = os.path.expanduser('~/.launchpadlib/cache') LPCACHEDIR = os.path.expanduser('~/.launchpadlib/cache')

View File

@ -12,9 +12,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from elastic_recheck import elasticRecheck
import testtools import testtools
from elastic_recheck import elasticRecheck
class TestRequiredFiles(testtools.TestCase): class TestRequiredFiles(testtools.TestCase):
def test_url(self): def test_url(self):