fastflowtransform.utest¶
UnitInput ¶
Bases: BaseModel
Single relation input: either inline rows or a CSV file.
Source code in src/fastflowtransform/utest.py
32 33 34 35 36 37 38 | |
UnitExpect ¶
Bases: BaseModel
Expected result configuration for a unit-test case.
Extra keys are forbidden so YAML specs are tightly validated.
Source code in src/fastflowtransform/utest.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
UnitDefaults ¶
Bases: BaseModel
Defaults that apply to all cases in a spec unless overridden.
Source code in src/fastflowtransform/utest.py
59 60 61 62 63 64 65 | |
UnitCase ¶
Bases: BaseModel
A single unit-test case within a spec.
Source code in src/fastflowtransform/utest.py
68 69 70 71 72 73 74 75 | |
UnitSpec ¶
Bases: BaseModel
Top-level unit-test specification loaded from YAML.
path and project_dir are runtime-only and are not populated from YAML
(we set them in discovery).
Source code in src/fastflowtransform/utest.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
merged_case ¶
merged_case(case)
Return a new UnitCase where defaults have been applied (inputs + expect).
Source code in src/fastflowtransform/utest.py
119 120 121 122 123 124 125 126 127 | |
run_unit_specs ¶
run_unit_specs(specs, executor, jenv, only_case=None, *, cache_mode='off', reuse_meta=False)
Execute discovered unit-test specs. Returns the number of failed cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cache_mode
|
str
|
'off' | 'ro' | 'rw'. Default 'off' for deterministic runs. |
'off'
|
reuse_meta
|
bool
|
reserved (no-op). |
False
|
Source code in src/fastflowtransform/utest.py
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 | |