Error with tests filebrowser, grappelli, debug_toolbar - Error configuration

173 views
Skip to first unread message

Josue Bastos

unread,
May 3, 2014, 5:55:01 PM5/3/14
to djangofi...@googlegroups.com
when I use the following command the error occurs .

I'm use:
Filebrowser 3.5.7
Django 1.6.2
Grappelli 2.5.3

What's wrong ? 
Help-me please !




Errors.

CMD - windows XP 


FileBrowser

C:\Projetos\josue>python manage.py test filebrowser
Creating test database for alias 'default'...
EEEEEEE
======================================================================
ERROR: filebrowser.tests.test_base (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_base
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_commands (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_commands
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_forms (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_forms
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_settings (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_settings
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_sites (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_sites
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_templatetags (unittest.loader.ModuleImportFailure)

----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_templatetags
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


======================================================================
ERROR: filebrowser.tests.test_versions (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: filebrowser.tests.test_versions
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\lib\unittest\loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\__init__.py", line 3, in <module>
    from filebrowser.tests.test_sites import *
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_sites.py", line 425, in <module>
    all_sites = get_resolver(get_urlconf()).app_dict[APP_NAME]
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 310, in
 app_dict
    self._populate()
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 262, in
 _populate
    for pattern in reversed(self.url_patterns):
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 346, in
 url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Python27\lib\site-packages\django\core\urlresolvers.py", line 341, in
 urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in im
port_module
    __import__(name)
  File "C:\Projetos\josue\josue\urls.py", line 32, in <module>
    url(r'^__debug__/', include(debug_toolbar.urls)),
NameError: name 'debug_toolbar' is not defined


----------------------------------------------------------------------
Ran 7 tests in 0.000s

FAILED (errors=7)
Destroying test database for alias 'default'...




Grappelli

C:\Projetos\josue>python manage.py test grappelli
Creating test database for alias 'default'...
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:903: RuntimeWa
rning: DateTimeField Entry.date received a naive datetime (2014-05-03 17:54:35.3
75000) while time zone support is active.
  RuntimeWarning)

C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:903: RuntimeWa
rning: DateTimeField Entry.date received a naive datetime (2014-05-03 17:54:35.3
90000) while time zone support is active.
  RuntimeWarning)

.C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:903: RuntimeW
arning: DateTimeField Entry.date received a naive datetime (2014-05-03 17:54:36.
500000) while time zone support is active.
  RuntimeWarning)

.C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:903: RuntimeW
arning: DateTimeField Entry.date received a naive datetime (2014-05-03 17:54:37.
484000) while time zone support is active.
  RuntimeWarning)

.C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:903: RuntimeW
arning: DateTimeField Entry.date received a naive datetime (2014-05-03 17:54:38.
593000) while time zone support is active.
  RuntimeWarning)

.EFFEE
======================================================================
ERROR: test_switch_editor001_user001 (grappelli.tests.test_switch.SwitchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_grappelli-2.5.3-py2.7.egg\grappelli
\tests\test_switch.py", line 172, in test_switch_editor001_user001
    self.assertEqual([m.message for m in list(response.context['messages'])], [_
("Permission denied.")])
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 57, in __getit
em__
    raise KeyError(key)
KeyError: 'messages'

======================================================================
ERROR: test_switch_superuser001_superuser002 (grappelli.tests.test_switch.Switch
Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_grappelli-2.5.3-py2.7.egg\grappelli
\tests\test_switch.py", line 113, in test_switch_superuser001_superuser002
    self.assertEqual([m.message for m in list(response.context['messages'])], [_
("Permission denied.")])
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 57, in __getit
em__
    raise KeyError(key)
KeyError: 'messages'

======================================================================
ERROR: test_switch_superuser001_user001 (grappelli.tests.test_switch.SwitchTests
)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_grappelli-2.5.3-py2.7.egg\grappelli
\tests\test_switch.py", line 156, in test_switch_superuser001_user001
    self.assertEqual([m.message for m in list(response.context['messages'])], [_
('%(name)s object with primary key %(key)r does not exist.') % {'name': "User",
'key': escape(target_user.id)}])
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 57, in __getit
em__
    raise KeyError(key)
KeyError: 'messages'

======================================================================
FAIL: test_switch_login (grappelli.tests.test_switch.SwitchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_grappelli-2.5.3-py2.7.egg\grappelli
\tests\test_switch.py", line 72, in test_switch_login
    self.assertEqual(t, t_cmp)
AssertionError: '' != '<li><a href="/grappelli/switch/user/3/?redirect=/admin/gr
appelli/category/" class="grp-switch-user-is-target">Editor001</a></li><li><a hr
ef="/grappelli/switch/user/4/?redirect=/admin/grappelli/category/" class="grp-sw
itch-user-is-target">Editor002</a></li>'

======================================================================
FAIL: test_switch_superuser001_editor001 (grappelli.tests.test_switch.SwitchTest
s)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_grappelli-2.5.3-py2.7.egg\grappelli
\tests\test_switch.py", line 136, in test_switch_superuser001_editor001
    self.assertEqual(t, t_cmp)
AssertionError: '' != '<li><a href="/grappelli/switch/user/1/?redirect=/admin/gr
appelli/category/" class="grp-switch-user-is-original">Superuser001</a></li><li>
<a href="/grappelli/switch/user/3/?redirect=/admin/grappelli/category/" class="g
rp-switch-user-is-target">Editor001</a></li><li><a href="/grappelli/switch/user/
4/?redirect=/admin/grappelli/category/" class="grp-switch-user-is-target">Editor
002</a></li>'

----------------------------------------------------------------------
Ran 9 tests in 10.421s

FAILED (failures=2, errors=3)
Destroying test database for alias 'default'...


Debug_Toolbar

C:\Projetos\josue>python manage.py test debug_toolbar
Creating test database for alias 'default'...

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Destroying test database for alias 'default'...



#==========================================================================================

OBS : 

Tinymce works fine.

python manage.py test tinymce

C:\Projetos\josue>python manage.py test tinymce
Creating test database for alias 'default'...

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Destroying test database for alias 'default'...



patrick kranzlmueller

unread,
May 4, 2014, 4:44:12 AM5/4/14
to djangofi...@googlegroups.com
first off, the error refers to "debug_toolbar" ... I guess you need to check the installation with that app (so your main error is not related to filebrowser/grappelli).


--
You received this message because you are subscribed to the Google Groups "Django FileBrowser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to djangofilebrow...@googlegroups.com.
To post to this group, send email to djangofi...@googlegroups.com.
Visit this group at http://groups.google.com/group/djangofilebrowser.
For more options, visit https://groups.google.com/d/optout.

Josue Bastos

unread,
May 11, 2014, 4:35:45 PM5/11/14
to djangofi...@googlegroups.com
I solved the problem of debug_toolbar. Now the following error occurs.what should I do ?
google translate.



C:\Projetos\josue>python manage.py test filebrowser
('Creating Test for the FileBrowser site:', 'filebrowser')
Creating test database for alias 'default'...
....E...FFEEE....
Select a version you want to generate:
 * large
 * admin_thumbnail
(leave blank to generate all versions): generating version "large" for: fb_test_
directory/fb_tmp_dir/fb_tmp_dir_sub/testimage.jpg
E..................EE.
======================================================================
ERROR: test_delete (filebrowser.tests.test_base.FileObjectAttributeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 440, in test_delete
    f_version = self.f_image.version_generate("large")
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 508, in version_generate
    version_path = self._generate_version(version_suffix)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 519, in _generate_version
    tmpfile = File(NamedTemporaryFile())
  File "C:\Python27\lib\tempfile.py", line 450, in NamedTemporaryFile
    dir = gettempdir()
  File "C:\Python27\lib\tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME~1\\Israel
\\CONFIG~1\\Temp', 'C:\\DOCUME~1\\Israel\\CONFIG~1\\Temp', 'c:\\temp', 'c:\\tmp'
, '\\temp', '\\tmp', 'C:\\Projetos\\josue']

======================================================================
ERROR: test_version_attributes_1 (filebrowser.tests.test_base.FileObjectAttribut
eTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 319, in test_version_attributes_1
    f_version = self.f_image.version_generate("large")
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 508, in version_generate
    version_path = self._generate_version(version_suffix)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 519, in _generate_version
    tmpfile = File(NamedTemporaryFile())
  File "C:\Python27\lib\tempfile.py", line 450, in NamedTemporaryFile
    dir = gettempdir()
  File "C:\Python27\lib\tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME~1\\Israel
\\CONFIG~1\\Temp', 'C:\\DOCUME~1\\Israel\\CONFIG~1\\Temp', 'c:\\temp', 'c:\\tmp'
, '\\temp', '\\tmp', 'C:\\Projetos\\josue']

======================================================================
ERROR: test_version_attributes_2 (filebrowser.tests.test_base.FileObjectAttribut
eTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 364, in test_version_attributes_2
    f_version = self.f_image.version_generate("large")
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 508, in version_generate
    version_path = self._generate_version(version_suffix)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 519, in _generate_version
    tmpfile = File(NamedTemporaryFile())
  File "C:\Python27\lib\tempfile.py", line 450, in NamedTemporaryFile
    dir = gettempdir()
  File "C:\Python27\lib\tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME~1\\Israel
\\CONFIG~1\\Temp', 'C:\\DOCUME~1\\Israel\\CONFIG~1\\Temp', 'c:\\temp', 'c:\\tmp'
, '\\temp', '\\tmp', 'C:\\Projetos\\josue']

======================================================================
ERROR: test_version_attributes_3 (filebrowser.tests.test_base.FileObjectAttribut
eTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 410, in test_version_attributes_3
    f_version = self.f_image.version_generate("large")
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 508, in version_generate
    version_path = self._generate_version(version_suffix)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 519, in _generate_version
    tmpfile = File(NamedTemporaryFile())
  File "C:\Python27\lib\tempfile.py", line 450, in NamedTemporaryFile
    dir = gettempdir()
  File "C:\Python27\lib\tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME~1\\Israel
\\CONFIG~1\\Temp', 'C:\\DOCUME~1\\Israel\\CONFIG~1\\Temp', 'c:\\temp', 'c:\\tmp'
, '\\temp', '\\tmp', 'C:\\Projetos\\josue']

======================================================================
ERROR: test_fb_version_generate (filebrowser.tests.test_commands.CommandsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_commands.py", line 104, in test_fb_version_generate
    call_command('fb_version_generate', 'fb_test_directory')
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
159, in call_command
    return klass.execute(*args, **defaults)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 285,
 in execute
    output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\management\commands\fb_version_generate.py", line 68, in handle
    versionobject = fileobject.version_generate(selected_version)  # FIXME force
?
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 508, in version_generate
    version_path = self._generate_version(version_suffix)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\base.py", line 519, in _generate_version
    tmpfile = File(NamedTemporaryFile())
  File "C:\Python27\lib\tempfile.py", line 450, in NamedTemporaryFile
    dir = gettempdir()
  File "C:\Python27\lib\tempfile.py", line 269, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 212, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['C:\\DOCUME~1\\Israel
\\CONFIG~1\\Temp', 'C:\\DOCUME~1\\Israel\\CONFIG~1\\Temp', 'c:\\temp', 'c:\\tmp'
, '\\temp', '\\tmp', 'C:\\Projetos\\josue']

======================================================================
ERROR: test_version (filebrowser.tests.test_versions.VersionTemplateTagsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_versions.py", line 125, in test_version
    r = t.render(c)
  File "C:\Python27\lib\site-packages\django\template\base.py", line 140, in ren
der
    return self._render(context)
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 85, in instrum
ented_test_render
    return self.nodelist.render(context)
  File "C:\Python27\lib\site-packages\django\template\base.py", line 840, in ren
der
    bit = self.render_node(node, context)
  File "C:\Python27\lib\site-packages\django\template\debug.py", line 78, in ren
der_node
    return node.render(context)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\templatetags\fb_versions.py", line 49, in render
    raise e
WindowsError: [Error 3] O sistema nÒo pode encontrar o caminho especificado: u''


======================================================================
ERROR: test_version_object (filebrowser.tests.test_versions.VersionTemplateTagsT
ests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_versions.py", line 203, in test_version_object
    r = t.render(c)
  File "C:\Python27\lib\site-packages\django\template\base.py", line 140, in ren
der
    return self._render(context)
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 85, in instrum
ented_test_render
    return self.nodelist.render(context)
  File "C:\Python27\lib\site-packages\django\template\base.py", line 840, in ren
der
    bit = self.render_node(node, context)
  File "C:\Python27\lib\site-packages\django\template\debug.py", line 78, in ren
der_node
    return node.render(context)
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\templatetags\fb_versions.py", line 98, in render
    raise e
WindowsError: [Error 3] O sistema nÒo pode encontrar o caminho especificado: u''


======================================================================
FAIL: test_init_attributes (filebrowser.tests.test_base.FileObjectAttributeTests
)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 185, in test_init_attributes
    self.assertEqual(self.f_image.head, 'fb_test_directory/fb_tmp_dir/fb_tmp_dir
_sub')
AssertionError: 'fb_test_directory/fb_tmp_dir\\fb_tmp_dir_sub' != 'fb_test_direc
tory/fb_tmp_dir/fb_tmp_dir_sub'

======================================================================
FAIL: test_path_url_attributes (filebrowser.tests.test_base.FileObjectAttributeT
ests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django_filebrowser-3.5.7-py2.7.egg\filebro
wser\tests\test_base.py", line 220, in test_path_url_attributes
    self.assertEqual(self.f_image.path_full, os.path.join(site.storage.location,
 site.directory, "fb_tmp_dir/fb_tmp_dir_sub/testimage.jpg"))
AssertionError: u'C:\\Projetos\\josue\\media\\fb_test_directory\\fb_tmp_dir\\fb_
tmp_dir_sub\\testimage.jpg' != 'C:\\Projetos\\josue\\media/fb_test_directory/fb_
tmp_dir/fb_tmp_dir_sub/testimage.jpg'

----------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages