2015-02-09 12:16:56 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
2016-06-02 22:40:15 +00:00
|
|
|
import os
|
2015-02-09 12:16:56 +00:00
|
|
|
|
|
|
|
import pytest
|
2016-06-02 22:40:15 +00:00
|
|
|
from hypothesis import settings
|
2015-02-09 12:16:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
|
|
def C():
|
|
|
|
"""
|
|
|
|
Return a simple but fully features attrs class with an x and a y attribute.
|
|
|
|
"""
|
|
|
|
from attr import attributes, attr
|
|
|
|
|
|
|
|
@attributes
|
|
|
|
class C(object):
|
|
|
|
x = attr()
|
|
|
|
y = attr()
|
|
|
|
|
|
|
|
return C
|
2016-06-02 22:40:15 +00:00
|
|
|
|
|
|
|
# PyPy on Travis appears to be too slow.
|
|
|
|
settings.register_profile("travis_pypy", settings(perform_health_check=False))
|
|
|
|
settings.load_profile(os.getenv(u'HYPOTHESIS_PROFILE', 'default'))
|