hypothesis 6.135.10__py3-none-any.whl → 6.135.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ from typing import Any, Callable, TypeVar, Union
17
17
 
18
18
  import django
19
19
  from django import forms as df
20
- from django.contrib.auth.forms import UsernameField
20
+ from django.conf import settings
21
21
  from django.core.validators import (
22
22
  validate_ipv4_address,
23
23
  validate_ipv6_address,
@@ -231,7 +231,6 @@ def _for_binary(field):
231
231
  @register_for(dm.TextField)
232
232
  @register_for(df.CharField)
233
233
  @register_for(df.RegexField)
234
- @register_for(UsernameField)
235
234
  def _for_text(field):
236
235
  # We can infer a vastly more precise strategy by considering the
237
236
  # validators as well as the field type. This is a minimal proof of
@@ -262,6 +261,12 @@ def _for_text(field):
262
261
  return strategy
263
262
 
264
263
 
264
+ if "django.contrib.auth" in settings.INSTALLED_APPS:
265
+ from django.contrib.auth.forms import UsernameField
266
+
267
+ register_for(UsernameField)(_for_text)
268
+
269
+
265
270
  @register_for(df.BooleanField)
266
271
  def _for_form_boolean(field):
267
272
  if field.required:
hypothesis/version.py CHANGED
@@ -8,5 +8,5 @@
8
8
  # v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
9
  # obtain one at https://mozilla.org/MPL/2.0/.
10
10
 
11
- __version_info__ = (6, 135, 10)
11
+ __version_info__ = (6, 135, 11)
12
12
  __version__ = ".".join(map(str, __version_info__))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypothesis
3
- Version: 6.135.10
3
+ Version: 6.135.11
4
4
  Summary: A library for property-based testing
5
5
  Author-email: "David R. MacIver and Zac Hatfield-Dodds" <david@drmaciver.com>
6
6
  License-Expression: MPL-2.0
@@ -14,7 +14,7 @@ hypothesis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  hypothesis/reporting.py,sha256=f-jhl1JfAi5_tG8dsUd2qDjGcPdvxEzfF6hXmpTFQ1g,1761
15
15
  hypothesis/stateful.py,sha256=vQ8wDO7YW-8nGlBGLfR9ariwmRCS9jxJy-Ky3swXjDE,42861
16
16
  hypothesis/statistics.py,sha256=kZ5mc0fAg7gnSO6EmDo82fyz8DYhIiJ_mHe7srxOeQ0,5438
17
- hypothesis/version.py,sha256=zNVpD2w8EJ6Knk7ulTB14thAexTwxSDUr521snNGsl8,499
17
+ hypothesis/version.py,sha256=KBpmgeNY1SSGEsd2X5S3s5mYPUdk0FGBG7gXhBhzSFs,499
18
18
  hypothesis/extra/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
19
19
  hypothesis/extra/_array_helpers.py,sha256=PLmFckBfQpzQ4Q3dFJQqMmrbm7Qdvqxf1t9LHDCuSp0,27627
20
20
  hypothesis/extra/_patching.py,sha256=A5s5EAf81itr--w4SAFyzuecSZm4eT397jM7BvbnQXU,12385
@@ -30,7 +30,7 @@ hypothesis/extra/pytestplugin.py,sha256=OmbL8Nrqm6UpzxXPnfzZ4yFAqVfFGYGzZM4qxdOg
30
30
  hypothesis/extra/pytz.py,sha256=0lBQ_eYbDutaO6-17hMTwkNxam3l7VqYj0_H7TjiEKA,2440
31
31
  hypothesis/extra/redis.py,sha256=xhwJwUoM2H5R5fgKaZKuAc9lPFLwSah5elJe1ELDysA,5432
32
32
  hypothesis/extra/django/__init__.py,sha256=B_Sr2KWC5-WSBpspxh4f-fHx9Ij7e585OiufpZPHz9I,908
33
- hypothesis/extra/django/_fields.py,sha256=JcmHLYYje29x1De9KiMXJiYe3xKDj-rjuIT2TbNmkyw,14809
33
+ hypothesis/extra/django/_fields.py,sha256=nYG1rM7b-zKddgkgf6s5zmFQdAhUHY0CqrAXTjseuTE,14916
34
34
  hypothesis/extra/django/_impl.py,sha256=pqX1oethUqejBbZ3OoqKgGx9YEgAJ78BszMzJSerF9I,8403
35
35
  hypothesis/extra/pandas/__init__.py,sha256=QLIoS5U0ZQwOVfKWTLg6k-ZMdI3rGzcFixE1hem28CE,633
36
36
  hypothesis/extra/pandas/impl.py,sha256=Vpn9ljD3_Irbl_ZFQpTbE3dV1QW89Z6CR_0HWaXniXY,28445
@@ -105,9 +105,9 @@ hypothesis/utils/terminal.py,sha256=IxGYDGaE4R3b_vMfz5buWbN18XH5qVP4IxqAgNAU5as,
105
105
  hypothesis/vendor/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
106
106
  hypothesis/vendor/pretty.py,sha256=WEZC-UV-QQgCjUf2Iz1WWaWnbgT7Hc3s-GWEVxq-Qz0,36114
107
107
  hypothesis/vendor/tlds-alpha-by-domain.txt,sha256=W9hYvpu2BMmNgE-SfPp8-GTzEVjw0HJUviqlvHwpZu8,9588
108
- hypothesis-6.135.10.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
109
- hypothesis-6.135.10.dist-info/METADATA,sha256=OKN6987_2dDGZzZBMCItH59GHVEaXE8IOqn69A9gYsI,5638
110
- hypothesis-6.135.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
111
- hypothesis-6.135.10.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
112
- hypothesis-6.135.10.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
113
- hypothesis-6.135.10.dist-info/RECORD,,
108
+ hypothesis-6.135.11.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
109
+ hypothesis-6.135.11.dist-info/METADATA,sha256=9agDwV5-3dq4RVVQT9e0xAst9yCqd6av6yWH6V5V0p8,5638
110
+ hypothesis-6.135.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
111
+ hypothesis-6.135.11.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
112
+ hypothesis-6.135.11.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
113
+ hypothesis-6.135.11.dist-info/RECORD,,