-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't depend on known field_size in _field_constraints method
We replace the use of `_target_size` by a similar `_target_size_opt` function, which returns None if the size of the link target can't be computed. In this case, no constraints need to be added to the constraints computed by `_field_constraints`. We do the same for `_target_last_opt`. Also add unit test for new `_target_last_opt` function For eng/recordflux/recordflux#1480
- Loading branch information
Showing
2 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters