fixed issue 964, thanks Jonathan

This commit is contained in:
mdipierro
2012-09-09 09:20:45 -05:00
parent ebcd7a16a9
commit 97bcdfd73a
7 changed files with 19 additions and 10 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for gluon.sql
Unit tests for gluon.dal
"""
import sys
@@ -424,7 +424,7 @@ class TestMinMaxSum(unittest.TestCase):
class TestCache(unittest.TestCase):
def testRun(self):
from gluon.cache import CacheInRam
from cache import CacheInRam
cache = CacheInRam()
db = DAL('sqlite:memory:')
db.define_table('t', Field('a'))
+4 -1
View File
@@ -59,7 +59,10 @@ try:
def setUp(self):
self.request = Storage()
self.request.folder = 'applications/welcome'
if os.path.isdir('gluon'):
self.request.folder = 'applications/welcome'
else:
self.request.folder = os.path.realpath('../../applications/welcome')
self.request.env = Storage()
self.request.env.http_accept_language = 'en'
+1 -1
View File
@@ -11,7 +11,7 @@ else:
sys.path.append(os.path.realpath('../'))
import unittest
from gluon.contrib.markmin.markmin2html import run_doctests
from contrib.markmin.markmin2html import run_doctests
class TestMarkmin(unittest.TestCase):
def testMarkmin(self):
+1 -1
View File
@@ -11,7 +11,7 @@ else:
sys.path.append(os.path.realpath('../'))
import unittest
from gluon.contrib.webclient import WebClient
from contrib.webclient import WebClient
class TestWeb(unittest.TestCase):
def testWebClient(self):