fixed issue 964, thanks Jonathan
This commit is contained in:
@@ -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'))
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user