GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — docspring-python/test/test_model_field.py at main · DocSpring/docspring-python Expand file tree/ Copy pathtest_model_field.pyMore file actions 251 lines (238 loc) · 9.3 KB / Copy pathtest_model_field.pyFile metadata and controls251 lines (238 loc) · 9.3 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 # coding: utf-8 """ DocSpring API Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures. The version of the OpenAPI document: v2 Contact: [email protected] Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 import unittest from docspring.models.model_field import ModelField class TestModelField(unittest.TestCase): """ModelField unit test stubs""" def setUp(self): pass def tearDown(self): pass def make_instance(self, include_optional) -> ModelField: """Test ModelField include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ModelField` """ model = ModelField() if include_optional: return ModelField( id = 56, name = '', page = 56, acroform_name = '', type = 'string', static = True, editable = True, default = '', title = '', description = '', placeholder = '', metadata = '', required = True, option_list = '', combined_field_names = '', combined_field_type = 'separator', combined_field_separator = '', combined_field_format = '', integer = True, minimum = 1.337, maximum = 1.337, exclusive_minimum = True, exclusive_maximum = True, include_time = True, signature_allow_draw = True, signature_allow_type = True, barcode_symbology = 'code_25', hidden = True, x = 1.337, y = 1.337, width = 1.337, height = 1.337, rotation = 1.337, display_type = 'text', opacity = 1.337, date_time_format = '', typeface = 'Inconsolata', font_size = 56, character_spacing = 1.337, bold = True, uppercase = True, strikethrough = True, keep_leading_spaces = True, overflow = 'shrink_to_fit', multiline = True, multiline_lines = 56, min_length = 1.337, max_length = 56, auto_calculate_max_length = True, color = '', color_field_name = '', color_field_required = True, background_color = '', background_color_field_name = '', background_color_field_required = True, alignment = 'left', v_alignment = 'bottom', comb = True, comb_number_of_cells = 56, comb_value_offset = 56, shape_type = 'square', shape_sides = 56, shape_border_width = 56, shape_border_color = '', shape_border_color_field_name = '', shape_border_color_field_required = True, shape_fill_color = '', shape_fill_color_field_name = '', shape_fill_color_field_required = True, check_character = '✓', check_color = '', check_color_field_name = '', check_color_field_required = True, qrcode_color = '', qrcode_color_field_name = '', qrcode_color_field_required = True, true_text = '', false_text = '', condition = '', string_condition_type = 'equals', number_condition_type = 'equals', number_condition_range_min = 1.337, number_condition_range_max = 1.337, number_condition_range_exclusive_min = True, number_condition_range_exclusive_max = True, invert_boolean_condition = True, currency = True, decimal_places = 56, image_scale_type = 'fit', image_gravity = 'NorthWest', dependencies = docspring.models.field_dependency.FieldDependency( action = null, match = null, conditions = [ docspring.models.template_field_dependency_condition.TemplateFieldDependencyCondition( field = '', operator = null, value = null, range_max = null, ) ], ) ) else: return ModelField( id = 56, name = '', page = 56, acroform_name = '', type = 'string', static = True, editable = True, default = '', title = '', description = '', placeholder = '', metadata = '', required = True, option_list = '', combined_field_names = '', combined_field_type = 'separator', combined_field_separator = '', combined_field_format = '', integer = True, minimum = 1.337, maximum = 1.337, exclusive_minimum = True, exclusive_maximum = True, include_time = True, signature_allow_draw = True, signature_allow_type = True, barcode_symbology = 'code_25', hidden = True, x = 1.337, y = 1.337, width = 1.337, height = 1.337, rotation = 1.337, display_type = 'text', opacity = 1.337, date_time_format = '', typeface = 'Inconsolata', font_size = 56, character_spacing = 1.337, bold = True, uppercase = True, strikethrough = True, keep_leading_spaces = True, overflow = 'shrink_to_fit', multiline = True, multiline_lines = 56, min_length = 1.337, max_length = 56, auto_calculate_max_length = True, color = '', color_field_name = '', color_field_required = True, background_color = '', background_color_field_name = '', background_color_field_required = True, alignment = 'left', v_alignment = 'bottom', comb = True, comb_number_of_cells = 56, comb_value_offset = 56, shape_type = 'square', shape_sides = 56, shape_border_width = 56, shape_border_color = '', shape_border_color_field_name = '', shape_border_color_field_required = True, shape_fill_color = '', shape_fill_color_field_name = '', shape_fill_color_field_required = True, check_character = '✓', check_color = '', check_color_field_name = '', check_color_field_required = True, qrcode_color = '', qrcode_color_field_name = '', qrcode_color_field_required = True, true_text = '', false_text = '', condition = '', string_condition_type = 'equals', number_condition_type = 'equals', number_condition_range_min = 1.337, number_condition_range_max = 1.337, number_condition_range_exclusive_min = True, number_condition_range_exclusive_max = True, invert_boolean_condition = True, currency = True, decimal_places = 56, image_scale_type = 'fit', image_gravity = 'NorthWest', dependencies = docspring.models.field_dependency.FieldDependency( action = null, match = null, conditions = [ docspring.models.template_field_dependency_condition.TemplateFieldDependencyCondition( field = '', operator = null, value = null, range_max = null, ) ], ), ) """ def testModelField(self): """Test ModelField""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |