Update distinct list tests. (#858)
Updated dlist tests and separated them into new test files:
- `test_link_set_abstract.py` for `AbstractLinkSet` and `AbstractMutableLinkSet`
- `test_link_set.py` for concrete instantiations of `LinkSet`
- `test_link_with_props_set.py` for concrete instantiations of `LinkWithPropsSet`
- `test_link_set_models.py` for link sets generated from models
Some of the new tests are marked xfail:
- Tests for querying model generated link sets fail for three reasons:
- The link is not fetched despite being marked `True` or a splat is used
- An empty collection is produced
- An error like: "expected ForwardRef to be a path alias"
- Tests for modifying model generated link sets using `+=` and `-=` fail because mypy seems to be checking `+` and `-` instead
Additionally, all tests of the form `test_link_set_model_fresh_multi_link_with_props_` fail with `AttributeError: 'ModelFieldDescriptor' object has no attribute 'link'`.
---------
Co-authored-by: Yury Selivanov <yury@geldata.com>
Co-authored-by: Fantix King <fantix.king@gmail.com> D
dnwpark committed
49ae58f63bf8a9fde6adc2528883cf9bb8e6edab
Parent: 7287bec
Committed by GitHub <noreply@github.com>
on 8/26/2025, 1:23:20 AM