mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
Travis - test on Trusty (#129)
As per [their blog post](https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming) they're making it the new default, best to be ahead of the curve.
This commit is contained in:
parent
f3b5d854ca
commit
79927fbe10
|
@ -1,4 +1,5 @@
|
|||
sudo: false
|
||||
dist: trusty
|
||||
|
||||
language: python
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from hypothesis import HealthCheck, settings
|
||||
|
||||
settings.register_profile(
|
||||
'daphne',
|
||||
settings(suppress_health_check=[HealthCheck.too_slow]),
|
||||
)
|
||||
settings.load_profile('daphne')
|
|
@ -8,7 +8,7 @@ import unittest
|
|||
from six.moves.urllib import parse
|
||||
|
||||
from asgiref.inmemory import ChannelLayer
|
||||
from hypothesis import given, assume, settings, HealthCheck
|
||||
from hypothesis import given, assume
|
||||
from twisted.test import proto_helpers
|
||||
|
||||
from daphne.http_protocol import HTTPFactory
|
||||
|
@ -99,7 +99,6 @@ class TestHTTPRequestSpec(testcases.ASGIHTTPTestCase):
|
|||
request_body=http_strategies.http_body(),
|
||||
)
|
||||
# This test is slow enough that on Travis, hypothesis sometimes complains.
|
||||
@settings(suppress_health_check=[HealthCheck.too_slow])
|
||||
def test_kitchen_sink(
|
||||
self, request_method, request_path, request_params, request_headers, request_body):
|
||||
"""
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import unicode_literals
|
|||
from unittest import TestCase
|
||||
|
||||
from asgiref.inmemory import ChannelLayer
|
||||
from hypothesis import given, settings
|
||||
from hypothesis import given
|
||||
from twisted.test import proto_helpers
|
||||
|
||||
from daphne.http_protocol import HTTPFactory
|
||||
|
@ -72,7 +72,6 @@ class TestHTTPResponseSpec(testcases.ASGIHTTPTestCase):
|
|||
headers=http_strategies.headers(),
|
||||
body=http_strategies.http_body(),
|
||||
)
|
||||
@settings(perform_health_check=False)
|
||||
def test_kitchen_sink(self, headers, body):
|
||||
"""
|
||||
This tests tries to let Hypothesis find combinations of variables that result
|
||||
|
|
Loading…
Reference in New Issue
Block a user