Alexander Skvortsov
cee87848fe
Added post extender with type method, deprecated ConfigurePostTypes ( #2101 )
2020-11-03 10:43:49 -05:00
Daniël Klabbers
561e8c6b6a
Add test for model object argument in callable for attribute defaults
2020-10-07 11:38:52 +02:00
Alexander Skvortsov
7794546845
Model extender: Fix inheritance ( #2132 )
...
This ensures that default values, date attributes and relationships are properly inherited, when we have deeper model class hierarchies.
This also adds test cases to ensure that inheritance order is honored for relationship and default attribute extender. As there's no way to remove date attributes, the order of evaluation there doesn't matter.
2020-04-24 21:17:31 +02:00
Franz Liedke
c43cc874ee
Model extender: Add failing test
...
We determined that child classes are not properly affected when
extending the parent classes.
Refs #2100 .
2020-04-24 17:54:30 +02:00
Franz Liedke
33cf94c192
Fix test to match its description
...
Refs #2100 .
2020-04-24 17:31:08 +02:00
Franz Liedke
036e519865
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-04-24 14:56:37 +00:00
Franz Liedke
9386c91af9
Tweak model extender tests
...
- Format code
- Reorder methods
- Test a different scenario to avoid the use of sleep()
Refs #2100 .
2020-04-24 16:55:04 +02:00
Alexander Skvortsov
15bed971e6
Add model extender ( #2100 )
...
This covers default attribute values, date attributes and custom relationships.
2020-04-24 15:10:24 +02:00