Commit Graph

17 Commits

Author SHA1 Message Date
Хасанов Булат
13472369eb fix tox (#516) 2017-02-14 09:50:01 -08:00
Maik Hoepfel
6d71106c3c Simplify testing infrastructure (#515)
* Mark runtests helper executable

* Bump required version of asgiref

We're probably making our life easier when we keep the Channels
dependencies roughly in sync. As a 1.0 release was made, I suggest to
require it.

* Simplify tox and Travis configuration

I hopefully simplified the tox configuration by following what I did in
the other four Channels projects.

I then had a good look at tox-travis and decided to remove it. It does
add a layer of indirection with, IMHO, not enough gain. To understand
what Travis is doing, one would need to consider two files (and
understand tox-travis) instead of just one file. It also introduces
another point of failure. What pushed me over was that there's a bug
with env matching (https://github.com/ryanhiebert/tox-travis/issues/55)
and tox or tox-travis seem to mask an Exception
(https://travis-ci.org/django/channels/jobs/195950971#L195) that would
be hard to debug.
The draw back is that we duplicate the Django dependency matrix, and the
commands that are executed in Travis and tox. We could add a "--with-qa"
flag to runtests.py to have it execute flake8 and isort to rectify the
latter.

I extracted test dependencies as I did for asgi_redis.

* Document supported versions
2017-01-30 17:25:07 -08:00
Paul
f4f45dbb9f Sort imports and make Travis run isort (#425)
* Sort imports

* Make Travis run isort
2016-11-05 12:08:38 +01:00
Krukov D
be14c14783 Add django1.10 to the list of tests env (#353) 2016-09-11 11:28:44 +01:00
Andrew Godwin
c2b6759ba4 Revert "Unpin flake8 now they pushed a new release"
This reverts commit 10eaa36c9c.
2016-07-28 11:05:48 +01:00
Andrew Godwin
10eaa36c9c Unpin flake8 now they pushed a new release 2016-07-28 10:50:03 +01:00
Emett Speer
33ec92777f Added fix from pull 266 2016-07-27 08:21:20 -07:00
Tim Watts
4a09cec2d4 Test runserver (#214)
* Add tests for runserver and runworker management commands

* Fix flake8 and isort errors

* Refactor mocking, add comments to tests

* rm unneeded vargs
2016-06-29 11:26:21 -07:00
Tim Watts
56104e7fc6 Tests for file and streaming response handling inside Django (#185)
* add first streaming and file response tests

* iterate over response and not streaming content directly

* add coverage for FileResponse and StreamingHttpResponse

* added tests for headers, json responses, and redirect responses

* rm print statement

* skip failing stringio test
2016-06-01 09:47:50 -07:00
Andrew Godwin
a0f6d5b8b8 Only support Django 1.8 and above, as it's the LTS 2016-03-20 17:38:14 -07:00
Dan Lipsitt
d6d460d751 Add Python 3.4 to Tox config. 2016-03-12 15:35:44 -08:00
Andrew Godwin
1dab70ed86 Update CI config a bit more. 2016-02-05 16:22:58 -08:00
ekmartin
4f87d53adc Include cookies in request_info for websockets 2015-11-18 17:48:03 +01:00
ekmartin
cf2de79d64 Add isort and fix errors 2015-11-09 13:01:02 +01:00
ekmartin
1804d66b85 Ignore testproject for flake8 2015-11-09 13:00:00 +01:00
ekmartin
4469b55d96 Fix pep8 errors using the Django core's flake8 preset 2015-11-09 13:00:00 +01:00
ekmartin
351a18ba07 Add tox and run tests for python 2.7/3.5 and Django 1.6-1.8 2015-11-09 12:58:59 +01:00