Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
c5e598a8
Commit
c5e598a8
authored
Nov 27, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve test runner
parent
7465391d
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
36 additions
and
60 deletions
+36
-60
.gitignore
+3
-1
tests/assets/css/first.css
+0
-0
tests/assets/css/master.123456.css
+0
-0
tests/assets/css/second.css
+0
-0
tests/assets/css/urls.css
+0
-0
tests/assets/images/arrow.png
+0
-0
tests/assets/images/embed/arrow.png
+0
-0
tests/assets/js/application.js
+0
-0
tests/assets/js/dummy.coffee
+0
-0
tests/assets/js/first.js
+0
-0
tests/assets/js/second.js
+0
-0
tests/assets/templates/photo/detail.jst
+0
-0
tests/assets/templates/photo/list.jst
+0
-0
tests/assets/templates/video/detail.jst
+0
-0
tests/runtests.py
+0
-56
tests/settings.py
+31
-0
tox.ini
+2
-3
No files found.
.gitignore
View file @
c5e598a8
...
...
@@ -10,5 +10,6 @@ docs/_build/
*.egg-info
.coverage
coverage/
tests/
static
/js/dummy.js
tests/
assets
/js/dummy.js
.tox/
.DS_Store
\ No newline at end of file
tests/
static
/css/first.css
→
tests/
assets
/css/first.css
View file @
c5e598a8
File moved
tests/
static
/css/master.123456.css
→
tests/
assets
/css/master.123456.css
View file @
c5e598a8
File moved
tests/
static
/css/second.css
→
tests/
assets
/css/second.css
View file @
c5e598a8
File moved
tests/
static
/css/urls.css
→
tests/
assets
/css/urls.css
View file @
c5e598a8
File moved
tests/
static
/images/arrow.png
→
tests/
assets
/images/arrow.png
View file @
c5e598a8
File moved
tests/
static
/images/embed/arrow.png
→
tests/
assets
/images/embed/arrow.png
View file @
c5e598a8
File moved
tests/
static
/js/application.js
→
tests/
assets
/js/application.js
View file @
c5e598a8
File moved
tests/
static
/js/dummy.coffee
→
tests/
assets
/js/dummy.coffee
View file @
c5e598a8
File moved
tests/
static
/js/first.js
→
tests/
assets
/js/first.js
View file @
c5e598a8
File moved
tests/
static
/js/second.js
→
tests/
assets
/js/second.js
View file @
c5e598a8
File moved
tests/
static
/templates/photo/detail.jst
→
tests/
assets
/templates/photo/detail.jst
View file @
c5e598a8
File moved
tests/
static
/templates/photo/list.jst
→
tests/
assets
/templates/photo/list.jst
View file @
c5e598a8
File moved
tests/
static
/templates/video/detail.jst
→
tests/
assets
/templates/video/detail.jst
View file @
c5e598a8
File moved
tests/runtests.py
deleted
100644 → 0
View file @
7465391d
#!/usr/bin/env python
import
coverage
import
os
import
sys
from
django.conf
import
settings
TEST_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
if
not
settings
.
configured
:
settings
.
configure
(
PIPELINE_CACHE_BACKEND
=
'dummy://'
,
DATABASE_ENGINE
=
'sqlite3'
,
INSTALLED_APPS
=
[
'pipeline'
,
'tests'
],
MEDIA_URL
=
'/media/'
,
MEDIA_ROOT
=
os
.
path
.
join
(
TEST_DIR
,
'media'
),
STATIC_URL
=
'/static/'
,
STATIC_ROOT
=
os
.
path
.
join
(
TEST_DIR
,
'static'
),
TEMPLATE_DIRS
=
(
os
.
path
.
join
(
TEST_DIR
,
'templates'
),
),
TEST_DIR
=
TEST_DIR
,
)
from
django.test.simple
import
run_tests
def
runtests
(
*
test_args
):
if
not
test_args
:
test_args
=
[
'tests'
]
parent_dir
=
os
.
path
.
join
(
TEST_DIR
,
"../"
)
sys
.
path
.
insert
(
0
,
parent_dir
)
cover
=
coverage
.
coverage
(
branch
=
True
,
cover_pylib
=
False
,
include
=
[
os
.
path
.
join
(
parent_dir
,
'pipeline'
,
'*.py'
)
],
omit
=
[
os
.
path
.
join
(
parent_dir
,
'tests'
,
'*.py'
),
os
.
path
.
join
(
parent_dir
,
'pipeline'
,
'compressors'
,
'jsmin'
,
'jsmin.py'
),
]
)
cover
.
load
()
cover
.
start
()
failures
=
run_tests
(
test_args
,
verbosity
=
1
,
interactive
=
True
)
cover
.
stop
()
cover
.
save
()
cover
.
report
(
file
=
sys
.
stdout
)
sys
.
exit
(
failures
)
if
__name__
==
'__main__'
:
runtests
(
*
sys
.
argv
[
1
:])
tests/settings.py
0 → 100644
View file @
c5e598a8
import
os
import
os
local_path
=
lambda
path
:
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
path
)
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'TEST_NAME'
:
':memory:'
}
}
INSTALLED_APPS
=
[
'django.contrib.contenttypes'
,
'django.contrib.sites'
,
'django.contrib.auth'
,
'django.contrib.admin'
,
'pipeline'
,
'tests'
,
]
MEDIA_URL
=
'/media/'
MEDIA_ROOT
=
local_path
(
'media'
)
STATIC_URL
=
'/static/'
STATIC_ROOT
=
local_path
(
'assets'
)
TEMPLATE_DIRS
=
(
local_path
(
'templates'
),
)
tox.ini
View file @
c5e598a8
...
...
@@ -4,12 +4,11 @@ downloadcache = .tox/_download/
[testenv]
setenv
=
PYTHONPATH
=
{toxinidir}
/tests
PYTHONPATH
=
{toxinidir}
commands
=
python
{toxinidir}/tests/runtests.py
{envbindir}/django-admin.py
test
{posargs:tests}
--settings
=
tests.settings
deps
=
django
=
=1.3
coverage>=3.4
mock>=0.7.2
[testenv:docs]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment