django-rest-framework/tox.ini

47 lines
1.1 KiB
INI
Raw Normal View History

[pytest]
addopts=--tb=short
2012-09-25 15:21:05 +04:00
[tox]
2014-05-16 02:50:16 +04:00
envlist =
Version 3.5 (#4525) * Start test case * Added 'requests' test client * Address typos * Graceful fallback if requests is not installed. * Add cookie support * Tests for auth and CSRF * Py3 compat * py3 compat * py3 compat * Add get_requests_client * Added SchemaGenerator.should_include_link * add settings for html cutoff on related fields * Router doesn't work if prefix is blank, though project urls.py handles prefix * Fix Django 1.10 to-many deprecation * Add django.core.urlresolvers compatibility * Update django-filter & django-guardian * Check for empty router prefix; adjust URL accordingly It's easiest to fix this issue after we have made the regex. To try to fix it before would require doing something different for List vs Detail, which means we'd have to know which type of url we're constructing before acting accordingly. * Fix misc django deprecations * Use TOC extension instead of header * Fix deprecations for py3k * Add py3k compatibility to is_simple_callable * Add is_simple_callable tests * Drop python 3.2 support (EOL, Dropped by Django) * schema_renderers= should *set* the renderers, not append to them. * API client (#4424) * Fix release notes * Add note about 'User account is disabled.' vs 'Unable to log in' * Clean up schema generation (#4527) * Handle multiple methods on custom action (#4529) * RequestsClient, CoreAPIClient * exclude_from_schema * Added 'get_schema_view()' shortcut * Added schema descriptions * Better descriptions for schemas * Add type annotation to schema generation * Coerce schema 'pk' in path to actual field name * Deprecations move into assertion errors * Use get_schema_view in tests * Updte CoreJSON media type * Handle schema structure correctly when path prefixs exist. Closes #4401 * Add PendingDeprecation to Router schema generation. * Added SCHEMA_COERCE_PATH_PK and SCHEMA_COERCE_METHOD_NAMES * Renamed and documented 'get_schema_fields' interface.
2016-10-10 15:03:46 +03:00
{py27,py33,py34,py35}-django18,
{py27,py34,py35}-django{19,110},
{py27,py34,py35,py36}-django111,
{py35,py36}-djangomaster
lint,docs
[travis:env]
DJANGO =
1.8: django18
1.9: django19
1.10: django110
1.11: django111
master: djangomaster
2012-09-25 15:21:05 +04:00
[testenv]
2015-12-16 15:27:40 +03:00
commands = ./runtests.py --fast {posargs} --coverage -rw
setenv =
PYTHONDONTWRITEBYTECODE=1
2016-02-04 21:58:50 +03:00
PYTHONWARNINGS=once
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
2017-03-22 11:40:23 +03:00
django111: Django>=1.11rc1,<2.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
2015-09-28 13:44:07 +03:00
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
2013-02-01 18:03:28 +04:00
[testenv:lint]
basepython = python2.7
2015-06-25 23:58:24 +03:00
commands = ./runtests.py --lintonly
deps =
2015-09-28 13:44:07 +03:00
-rrequirements/requirements-codestyle.txt
-rrequirements/requirements-testing.txt
2012-09-25 15:21:05 +04:00
[testenv:docs]
basepython = python2.7
2015-06-25 23:58:24 +03:00
commands = mkdocs build
2014-10-23 00:22:16 +04:00
deps =
-rrequirements/requirements-testing.txt
-rrequirements/requirements-documentation.txt