test_card_file_modify
Functions:
all_datatypes_dict
all_datatypes_dict() -> dict
Source code in tests/test_card_file_modify.py
21 22 23 | |
all_datatypes_modified_str
all_datatypes_modified_str() -> str
Source code in tests/test_card_file_modify.py
31 32 33 | |
all_datatypes_str
all_datatypes_str() -> str
Source code in tests/test_card_file_modify.py
26 27 28 | |
test_append_kv
test_append_kv(three_kv_str, three_kv_dict)
Test appending new key-value pair at the section end
Source code in tests/test_card_file_modify.py
135 136 137 138 | |
test_append_kv_header
test_append_kv_header(three_kv_str, three_kv_dict)
Test appending new key-value pair with a header at the section end
Source code in tests/test_card_file_modify.py
141 142 143 144 145 146 147 | |
test_append_section
test_append_section(
three_section_kv_str, three_section_kv_dict
)
Test appending new sections
Source code in tests/test_card_file_modify.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |
test_modify_first_kv
test_modify_first_kv(three_kv_str, three_kv_dict)
Test modifying first key-value pair
Source code in tests/test_card_file_modify.py
117 118 119 120 | |
test_modify_last_kv
test_modify_last_kv(three_kv_str, three_kv_dict)
Test modifying last key-value pair
Source code in tests/test_card_file_modify.py
129 130 131 132 | |
test_modify_middle_kv
test_modify_middle_kv(three_kv_str, three_kv_dict)
Test modifying middle key-value pair
Source code in tests/test_card_file_modify.py
123 124 125 126 | |
test_modify_section
test_modify_section(
three_section_kv_str, three_section_kv_dict
)
Test modifying whole sections
Source code in tests/test_card_file_modify.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
test_modify_values
test_modify_values(
all_datatypes_dict,
all_datatypes_str,
all_datatypes_modified_str,
)
Source code in tests/test_card_file_modify.py
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 | |
test_null_modify
test_null_modify(all_datatypes_dict, all_datatypes_str)
Test modification with no modifications!
Source code in tests/test_card_file_modify.py
36 37 38 39 40 41 | |
test_remove_first_kv
test_remove_first_kv(three_kv_str, three_kv_dict)
Test removing first key-value pair
Source code in tests/test_card_file_modify.py
99 100 101 102 | |
test_remove_last_kv
test_remove_last_kv(three_kv_str, three_kv_dict)
Test removing last key-value pair
Source code in tests/test_card_file_modify.py
111 112 113 114 | |
test_remove_middle_kv
test_remove_middle_kv(three_kv_str, three_kv_dict)
Test removing middle key-value pair
Source code in tests/test_card_file_modify.py
105 106 107 108 | |
test_remove_section
test_remove_section(
three_section_kv_str, three_section_kv_dict
)
Test removing whole sections
Source code in tests/test_card_file_modify.py
150 151 152 153 154 155 156 157 158 159 160 | |
three_kv_dict
three_kv_dict(three_kv_str) -> dict
Source code in tests/test_card_file_modify.py
84 85 86 | |
three_kv_str
three_kv_str() -> str
Source code in tests/test_card_file_modify.py
79 80 81 | |
three_section_kv_dict
three_section_kv_dict(three_section_kv_str) -> dict
Source code in tests/test_card_file_modify.py
94 95 96 | |
three_section_kv_str
three_section_kv_str() -> str
Source code in tests/test_card_file_modify.py
89 90 91 | |