Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests failing #26

Open
bachle opened this issue Jan 16, 2011 · 0 comments
Open

Unit tests failing #26

bachle opened this issue Jan 16, 2011 · 0 comments

Comments

@bachle
Copy link

bachle commented Jan 16, 2011

not sure if this is a problem with compressor or django css. Doesn't look like the repo here or installing from pypi provides a version that does not break unit tests.

FAIL: test_css_split (compressor.tests.CompressorTestCase)

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/compressor/tests.py", line 95, in test_css_split
self.assertEqual(out, split)
AssertionError: [('file', u'/usr/lib/python2.6/site-packages/compressor/../testing/media/css/one.css', ''), ('hunk', u'p { border:5px solid green;}', '<style type="text/css">p { border:5px solid green;}</style>'), ('file', u'/usr/lib/python2.6/site-packages/compressor/../testing/media/css/two.css', ''), ('file', u'/usr/lib/python2.6/site-packages/compressor/../testing/media/css/three.css', ''), ('hunk', 'small {\n font-size: 10px;\n}', "<style type='text/css'>\nsmall {\n font-size: 10px;\n}\n</style>"), ('hunk', 'h1 {\n font-weight: bold;\n}', "<style type='text/css'>\nh1 {\n font-weight: bold;\n}\n</style>")] != [('file', u'/usr/lib/python2.6/site-packages/testing/media/css/one.css', ''), ('hunk', u'p { border:5px solid green;}', '<style type="text/css">p { border:5px solid green;}</style>'), ('file', u'/usr/lib/python2.6/site-packages/testing/media/css/two.css', ''), ('file', u'/usr/lib/python2.6/site-packages/testing/media/css/three.css', ''), ('hunk', 'small {\n font-size: 10px;\n}', "<style type='text/css'>\nsmall {\n font-size: 10px;\n}\n</style>"), ('hunk', 'h1 {\n font-weight: bold;\n}', "<style type='text/css'>\nh1 {\n font-weight: bold;\n}\n</style>")]

FAIL: test_get_filename (compressor.tests.CompressorTestCase)

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/compressor/tests.py", line 70, in test_get_filename
self.assertEqual(filename,os.path.join(settings.MEDIA_ROOT,'something.css'))
AssertionError: '/usr/lib/python2.6/site-packages/testing/media/something.css' != '/usr/lib/python2.6/site-packages/compressor/../testing/media/something.css'

FAIL: test_js_split (compressor.tests.CompressorTestCase)

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/compressor/tests.py", line 149, in test_js_split
self.assertEqual(out, split)
AssertionError: [('file', u'/usr/lib/python2.6/site-packages/compressor/../testing/media/js/one.js', '<script src="/media/js/one.js" type="text/javascript"></script>'), ('hunk', u'obj.value = "value";', '<script type="text/javascript">obj.value = "value";</script>')] != [('file', u'/usr/lib/python2.6/site-packages/testing/media/js/one.js', '<script src="/media/js/one.js" type="text/javascript"></script>'), ('hunk', u'obj.value = "value";', '<script type="text/javascript">obj.value = "value";</script>')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant