summaryrefslogtreecommitdiff
path: root/src/zope/schema
Commit message (Collapse)AuthorAgeFilesLines
* Fix fallback when zope.i18nmessageid is not installedColin Watson2023-01-022-3/+49
| | | | | | | I introduced this regression in https://github.com/zopefoundation/zope.schema/pull/118 by misreading the try/except/else logic in `zope.schema._messageid`. The new tests should guard against somebody else making a similar mistake in future.
* Fix test deprecation warning on Python 3.11Colin Watson2022-12-231-5/+6
| | | | Fixes #112.
* Drop support for Python < 3.7 (#118)Colin Watson2022-12-239-178/+46
|
* Fix outsized integer test values that break tests on newer Python versionsJens Vagelpohl2022-09-142-15/+15
|
* Fix tox lint run + isort imports. (#114)Michael Howitz2022-08-0520-140/+199
|
* Configuring for pure-python (#108)Michael Howitz2021-09-061-1/+1
|
* revert parts of #105 due to incompatibilityrevert-parts-of-105Jens W. Klein2021-08-193-7/+25
| | | | see also issue #104
* Fix `IField.required` to not be required by default. (#105)agitator2021-02-093-0/+15
| | | | | | | * set required=False as default on Bool fields * set default for IBool to not be required * bump version Co-authored-by: Michael Howitz <mh@gocept.com>
* test the BBB inst property works for getting and settingJan-Wijbrand Kolman2021-01-251-2/+12
|
* process PR commentsJan-Wijbrand Kolman2021-01-252-6/+15
|
* Fix FieldUpdateEvent implementation by having an `object` attribute as the ↵Jan-Wijbrand Kolman2021-01-252-6/+10
| | | | `IFieldUpdatedEvent` interfaces claims there should be. Fixes #102
* Enable branch coverage and bring it to 100%Colin Watson2021-01-046-19/+47
| | | | | | In most cases this involved judicious use of pragmas (especially for code that was explicitly or implicitly specific to Python 2 or 3), but I added a few more tests for some edge cases as well.
* Merge pull request #97 from cjwatson/flake8Colin Watson2021-01-0417-194/+297
|\ | | | | Add a tox lint environment, and make it pass
| * Use coverage-python-versionColin Watson2021-01-043-5/+5
| |
| * Rephrase IPassword docstring so that it can use triple quotesColin Watson2021-01-041-1/+1
| |
| * Apply suggestions from code reviewColin Watson2021-01-041-1/+1
| | | | | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
| * Restore zope.schema._field.InvalidDecimalLiteralColin Watson2021-01-041-0/+1
| |
| * Add a tox lint environment, and make it passColin Watson2020-12-2317-191/+293
| |
* | Restore 100% coverageColin Watson2020-12-231-1/+1
|/ | | | This branch is unused when running tests with zope.interface >= 5.0.1.
* Make the resolution order of all fields consistent.issue80Jason Madden2020-03-205-36/+157
| | | | | | And test this. Fixes #80. Add Python 3.8, drop Python 3.4.
* Fix: add ``Text.unicode_normalization = 'NFC'`` as defaultadamg-fix-textAdam Groszer2020-03-062-1/+21
|
* Set `IDecimal` attributes `min`, `max` and `default` as `Decimal` type ↵adamg-decimalAdam Groszer2020-03-065-125/+142
| | | | instead of `Number`.
* Removing left-over line from test that has been movedissue86Georg Bernhard2020-02-151-1/+0
|
* text_type was already imported from _compat, there is no need to repeat thatGeorg Bernhard2020-02-141-4/+0
|
* Making tests work wirh all versions of python is harder than one might think.Georg Bernhard2020-02-141-4/+6
|
* Making tests work with py2 and py3Georg Bernhard2020-02-142-7/+10
|
* Trying to get tests to run without literal utf-8 charactersGeorg Bernhard2020-02-141-1/+1
|
* Keeping signature the sameGeorg Bernhard2020-02-141-1/+0
|
* Merge branch 'issue86' of github.com:zopefoundation/zope.schema into issue86Georg Bernhard2020-02-141-1/+2
|\
| * Update src/zope/schema/_bootstrapfields.pyGeorg Gogo. BERNHARD2020-02-141-1/+2
| | | | | | Co-Authored-By: Jason Madden <jamadden@gmail.com>
* | Validation after normalizationGeorg Bernhard2020-02-142-6/+2
|/
* Moving doctest to zope testingGeorg Bernhard2020-02-141-2/+0
|
* Allowing for all variants of normalizationGeorg Bernhard2020-02-142-7/+7
|
* Doc-Tests need unicodedata to be importedGeorg Bernhard2020-02-141-0/+1
|
* Tests need coding definedGeorg Bernhard2020-02-142-0/+4
|
* Fixing issue86 by normalizing unicode for IFromUnicodeGeorg Bernhard2020-02-142-2/+33
|
* Fixed a ReST error in getDoc() results when having "subfields" with titlesLennart Regebro2018-10-122-4/+8
|
* - Make sure that the title for ``IObject.validate_invariants`` is a unicodeStephan Richter2018-10-111-1/+1
| | | | string.
* Fix handling of non-ascii bytes tokensDavid Glick2018-09-292-1/+10
|
* Make DottedName accept leading underscores.Jason Madden2018-09-244-5/+108
| | | | Add a PythonIdentifier class, and share the regex for an identifier between DottedName and PythonIdentifier so they are in sync.
* Merge pull request #77 from zopefoundation/issue76Jason Madden2018-09-242-0/+28
|\ | | | | Fix Field.getDoc() when value_type or key_type are present
| * Fix Field.getDoc() when value_type or key_type are presentissue76Jason Madden2018-09-232-0/+28
| | | | | | | | Fixes #76
* | Make NativeString[Line] into distinct types.issue74Jason Madden2018-09-223-19/+119
|/ | | | | | This facilitates documentation and interactive exploration. Fixes #74.
* Document IFromBytes in Sphinx.Jason Madden2018-09-201-0/+2
| | | | Add a missing '.. versionadded::' directive.
* Fix passing ``None`` as the description to a field constructor.Jason Madden2018-09-192-1/+28
| | | | Fixes #69.
* Use separate branches for Number.fromBytes for PY2/3; sprinkle 'no cover' ↵Jason Madden2018-09-191-1/+5
| | | | for PY2
* Add versionchanged sphinx directive for Bool.feature/IFromBytesJason Madden2018-09-181-1/+6
|
* Add IFromBytesJason Madden2018-09-187-68/+284
| | | | | | | | | | As a counterpoint to IFromUnicode. This is useful when you know the type of data you're dealing with, and conversions are either trivially non-lossy (or will fail anyway) or are not necessary. The numeric fields as well as Bytes/Line and URI, DottedName and Id implement this, the last three because they are native string lines that want to accept bytes on Python 2 anyway. On Python 2, lxml likes to produce byte strings "to save memory" even when parsing unicode and given proper XML encoding information, so this can be very helpful there.
* Give TOO_LARGE|SMALL meaningful reprs, as suggested.Jason Madden2018-09-113-9/+31
| | | | Minor whitespace cleanups.
* Add 'bound' to TooShort|Long|Big|Smallissue65Jason Madden2018-09-104-281/+216
| | | | | | Using a common superclass. Unify a bunch of the tests for these and remove duplication.