tests
Modules
collections
Modules
test_dict_deep_update
Tests of the deep_update() function
Functions:
test_add_top_level_keys
test_add_top_level_keys()
Source code in tests/collections/test_dict_deep_update.py
19 20 | |
test_empty_dict
test_empty_dict()
Source code in tests/collections/test_dict_deep_update.py
6 7 8 9 | |
test_inplace_update
test_inplace_update()
Source code in tests/collections/test_dict_deep_update.py
33 34 35 36 | |
test_replace_nested_keys
test_replace_nested_keys()
Source code in tests/collections/test_dict_deep_update.py
23 24 25 26 27 28 29 30 | |
test_replace_top_level_keys
test_replace_top_level_keys()
Source code in tests/collections/test_dict_deep_update.py
12 13 14 15 16 | |
test_card_file
Functions:
all_datatypes
all_datatypes()
Source code in tests/test_card_file.py
14 15 16 | |
config
config()
Source code in tests/test_card_file.py
60 61 62 | |
dynamico
dynamico()
Source code in tests/test_card_file.py
130 131 132 | |
lmdz
lmdz()
Source code in tests/test_card_file.py
207 208 209 | |
orchidee
orchidee()
Source code in tests/test_card_file.py
363 364 365 | |
test_card
test_card()
Source code in tests/test_card_file.py
587 588 589 | |
test_dumps_loads_all_datatypes
test_dumps_loads_all_datatypes(all_datatypes)
Source code in tests/test_card_file.py
56 57 | |
test_dumps_loads_config
test_dumps_loads_config(config)
Source code in tests/test_card_file.py
126 127 | |
test_dumps_loads_dynamico
test_dumps_loads_dynamico(dynamico)
Source code in tests/test_card_file.py
203 204 | |
test_dumps_loads_lmdz
test_dumps_loads_lmdz(lmdz)
Source code in tests/test_card_file.py
359 360 | |
test_dumps_loads_orchidee
test_dumps_loads_orchidee(orchidee)
Source code in tests/test_card_file.py
583 584 | |
test_dumps_loads_test_card
test_dumps_loads_test_card(test_card)
Source code in tests/test_card_file.py
615 616 | |
test_dumps_loads_xios
test_dumps_loads_xios(xios)
Source code in tests/test_card_file.py
640 641 | |
test_empty_content
test_empty_content()
Source code in tests/test_card_file.py
644 645 646 | |
test_empty_content_with_ws
test_empty_content_with_ws()
Source code in tests/test_card_file.py
649 650 | |
test_empty_section
test_empty_section()
Source code in tests/test_card_file.py
661 662 663 664 | |
test_empty_with_comment
test_empty_with_comment()
Source code in tests/test_card_file.py
653 654 | |
test_empty_with_comments
test_empty_with_comments()
Source code in tests/test_card_file.py
657 658 | |
test_invalid_missing_section
test_invalid_missing_section()
Source code in tests/test_card_file.py
672 673 674 | |
test_load_all_datatypes
test_load_all_datatypes(all_datatypes)
Source code in tests/test_card_file.py
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 | |
test_load_config
test_load_config(config)
Source code in tests/test_card_file.py
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 | |
test_load_dynamico
test_load_dynamico(dynamico)
Source code in tests/test_card_file.py
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 | |
test_load_lmdz
test_load_lmdz(lmdz)
Source code in tests/test_card_file.py
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 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | |
test_load_orchidee
test_load_orchidee(orchidee)
Source code in tests/test_card_file.py
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 | |
test_load_test_card
test_load_test_card(test_card)
Source code in tests/test_card_file.py
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 | |
test_load_xios
test_load_xios(xios)
Source code in tests/test_card_file.py
624 625 626 627 628 629 630 631 632 633 634 635 636 637 | |
test_two_empty_sections
test_two_empty_sections()
Source code in tests/test_card_file.py
667 668 669 670 | |
xios
xios()
Source code in tests/test_card_file.py
619 620 621 | |
test_card_file_decoder
Unit tests of CardFileDecoder
Functions:
decoder
decoder()
Initialize classical decoder
Source code in tests/test_card_file_decoder.py
9 10 11 12 | |
test_float
test_float(decoder)
Test decoding float numbers
Source code in tests/test_card_file_decoder.py
84 85 86 87 88 89 90 91 | |
test_integer
test_integer(decoder)
Test decoding integer numbers
Source code in tests/test_card_file_decoder.py
75 76 77 78 79 80 81 | |
test_invalid
test_invalid(decoder)
Test decoding invalid files
Source code in tests/test_card_file_decoder.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
test_list
test_list(decoder)
Test decoding of lists
Source code in tests/test_card_file_decoder.py
41 42 43 44 45 46 | |
test_literal
test_literal(decoder)
Test decoding standard key-value entries
Source code in tests/test_card_file_decoder.py
30 31 32 33 34 35 36 37 38 | |
test_logical
test_logical(decoder)
Test decoding logical values
Source code in tests/test_card_file_decoder.py
94 95 96 97 98 99 100 101 | |
test_nested_list
test_nested_list(decoder)
Test decoding of nested lists (lists of lists)
Source code in tests/test_card_file_decoder.py
49 50 51 52 53 54 55 56 | |
test_range
test_range(decoder)
Test decoding of ranges in the form START:STEP:END
Source code in tests/test_card_file_decoder.py
59 60 61 62 | |
test_section
test_section(decoder)
Test decoding sections
Source code in tests/test_card_file_decoder.py
15 16 17 18 19 20 21 22 23 24 25 26 27 | |
test_string
test_string(decoder)
Test decoding strings (quoted and unqoted)
Source code in tests/test_card_file_decoder.py
65 66 67 68 69 70 71 72 | |
test_card_file_decoder_positions
Unit tests of CardFileDecoder positions decoding
Functions:
decoder
decoder()
Initialize decoder with value position parsing
Source code in tests/test_card_file_decoder_positions.py
8 9 10 11 | |
test_compound_positions
test_compound_positions(decoder)
Test decoding of various positions
Source code in tests/test_card_file_decoder_positions.py
74 75 76 77 78 79 80 81 82 83 84 85 | |
test_float_positions
test_float_positions(decoder)
Test decoded positions of float numbers
Source code in tests/test_card_file_decoder_positions.py
308 309 310 311 312 313 314 315 | |
test_integer_positions
test_integer_positions(decoder)
Test decoded positions of integer numbers
Source code in tests/test_card_file_decoder_positions.py
298 299 300 301 302 303 304 305 | |
test_list_positions
test_list_positions(decoder)
Test decoded positions of various lists
Source code in tests/test_card_file_decoder_positions.py
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 | |
test_literal_positions
test_literal_positions(decoder)
Test decoded positions of all literals
Source code in tests/test_card_file_decoder_positions.py
88 89 90 91 92 93 94 95 96 97 98 | |
test_logical_positions
test_logical_positions(decoder)
Test decoded positions of logical values
Source code in tests/test_card_file_decoder_positions.py
318 319 320 321 322 323 324 | |
test_nested_list_positions
test_nested_list_positions(decoder)
Test decoding of nested lists (lists of lists)
Source code in tests/test_card_file_decoder_positions.py
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 252 253 254 255 256 257 258 259 260 261 262 | |
test_range_positions
test_range_positions(decoder)
Test decoded positions of ranges in the form START:STEP:END
Source code in tests/test_card_file_decoder_positions.py
265 266 267 268 269 270 271 272 273 274 275 276 277 | |
test_section_positions
test_section_positions(decoder)
Test decoded positions of sections
Source code in tests/test_card_file_decoder_positions.py
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 | |
test_string_positions
test_string_positions(decoder)
Test decoded positions of strings (quoted and unqoted)
Source code in tests/test_card_file_decoder_positions.py
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |
test_card_file_encoder
Functions:
encoder
encoder()
Source code in tests/test_card_file_encoder.py
6 7 8 | |
encoder_bool_labels
encoder_bool_labels()
Source code in tests/test_card_file_encoder.py
11 12 13 | |
encoder_explicit_kv_none
encoder_explicit_kv_none()
Source code in tests/test_card_file_encoder.py
16 17 18 | |
test_bool
test_bool(encoder)
Source code in tests/test_card_file_encoder.py
81 82 83 | |
test_bool_labels
test_bool_labels(encoder_bool_labels)
Source code in tests/test_card_file_encoder.py
86 87 88 | |
test_float
test_float(encoder)
Source code in tests/test_card_file_encoder.py
91 92 93 94 95 96 | |
test_int
test_int(encoder)
Source code in tests/test_card_file_encoder.py
99 100 101 102 | |
test_invalid
test_invalid(encoder)
Source code in tests/test_card_file_encoder.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
test_kv
test_kv(encoder)
Source code in tests/test_card_file_encoder.py
54 55 56 57 | |
test_list
test_list(encoder)
Source code in tests/test_card_file_encoder.py
60 61 62 63 64 65 66 67 | |
test_nested_list
test_nested_list(encoder)
Source code in tests/test_card_file_encoder.py
70 71 72 73 | |
test_none
test_none(encoder, encoder_explicit_kv_none)
Source code in tests/test_card_file_encoder.py
43 44 45 46 47 48 49 50 51 | |
test_range
test_range(encoder)
Source code in tests/test_card_file_encoder.py
76 77 78 | |
test_section
test_section(encoder)
Source code in tests/test_card_file_encoder.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
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 | |
test_def_file
Functions:
all_datatypes
all_datatypes()
Source code in tests/test_def_file.py
25 26 27 | |
all_datatypes_dump
all_datatypes_dump()
Source code in tests/test_def_file.py
30 31 32 | |
all_datatypes_with_positions
all_datatypes_with_positions()
Source code in tests/test_def_file.py
35 36 37 | |
config_actuel
config_actuel()
Source code in tests/test_def_file.py
40 41 42 | |
duplicated
duplicated()
Source code in tests/test_def_file.py
20 21 22 | |
earth_const
earth_const()
Source code in tests/test_def_file.py
45 46 47 | |
earth_const_dump
earth_const_dump()
Source code in tests/test_def_file.py
50 51 52 | |
earth_const_with_positions
earth_const_with_positions()
Source code in tests/test_def_file.py
55 56 57 | |
gcm_144x142_NPv63
gcm_144x142_NPv63()
Source code in tests/test_def_file.py
60 61 62 | |
orchidee_v22
orchidee_v22()
Source code in tests/test_def_file.py
65 66 67 | |
orchidee_v4
orchidee_v4()
Source code in tests/test_def_file.py
70 71 72 | |
physiq_NPv650
physiq_NPv650()
Source code in tests/test_def_file.py
75 76 77 | |
run_dynamico_lam_ERA5_France
run_dynamico_lam_ERA5_France()
Source code in tests/test_def_file.py
90 91 92 | |
run_dynamico_nbp60
run_dynamico_nbp60()
Source code in tests/test_def_file.py
85 86 87 | |
run_lmdz
run_lmdz()
Source code in tests/test_def_file.py
80 81 82 | |
test_all_datatypes_dumps
test_all_datatypes_dumps(all_datatypes, all_datatypes_dump)
Source code in tests/test_def_file.py
380 381 | |
test_all_datatypes_dumps_loads
test_all_datatypes_dumps_loads(all_datatypes)
Source code in tests/test_def_file.py
384 385 | |
test_all_datatypes_load
test_all_datatypes_load(all_datatypes)
Source code in tests/test_def_file.py
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 | |
test_all_datatypes_load_with_positions
test_all_datatypes_load_with_positions(
all_datatypes_with_positions,
)
Source code in tests/test_def_file.py
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 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | |
test_duplicated_load
test_duplicated_load(duplicated)
Source code in tests/test_def_file.py
100 101 102 103 104 105 106 | |
test_dynamico_earth_const_dumps
test_dynamico_earth_const_dumps(
earth_const, earth_const_dump
)
Source code in tests/test_def_file.py
449 450 | |
test_dynamico_earth_const_dumps_loads
test_dynamico_earth_const_dumps_loads(earth_const)
Source code in tests/test_def_file.py
453 454 | |
test_dynamico_earth_const_load
test_dynamico_earth_const_load(earth_const)
Source code in tests/test_def_file.py
388 389 390 391 392 393 394 395 396 397 398 | |
test_dynamico_earth_const_load_with_positions
test_dynamico_earth_const_load_with_positions(
earth_const_with_positions,
)
Source code in tests/test_def_file.py
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |
test_empty_content
test_empty_content()
Source code in tests/test_def_file.py
1268 1269 | |
test_empty_content_with_ws
test_empty_content_with_ws()
Source code in tests/test_def_file.py
1272 1273 | |
test_empty_with_comment
test_empty_with_comment()
Source code in tests/test_def_file.py
1276 1277 | |
test_empty_with_comments
test_empty_with_comments()
Source code in tests/test_def_file.py
1280 1281 | |
test_lmdz_config_actuel_dumps_loads
test_lmdz_config_actuel_dumps_loads(config_actuel)
Source code in tests/test_def_file.py
645 646 | |
test_lmdz_config_actuel_load
test_lmdz_config_actuel_load(config_actuel)
Source code in tests/test_def_file.py
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 | |
test_lmdz_gcm_144x142_NPv63_dumps_loads
test_lmdz_gcm_144x142_NPv63_dumps_loads(gcm_144x142_NPv63)
Source code in tests/test_def_file.py
679 680 | |
test_lmdz_gcm_144x142_NPv63_load
test_lmdz_gcm_144x142_NPv63_load(gcm_144x142_NPv63)
Source code in tests/test_def_file.py
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 | |
test_lmdz_physiq_NPv650_dumps_loads
test_lmdz_physiq_NPv650_dumps_loads(physiq_NPv650)
Source code in tests/test_def_file.py
866 867 | |
test_lmdz_physiq_NPv650_load
test_lmdz_physiq_NPv650_load(physiq_NPv650)
Source code in tests/test_def_file.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 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 | |
test_lmdz_vert_L95_dumps_loads
test_lmdz_vert_L95_dumps_loads(vert_L95)
Source code in tests/test_def_file.py
898 899 | |
test_lmdz_vert_L95_load
test_lmdz_vert_L95_load(vert_L95)
Source code in tests/test_def_file.py
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 | |
test_orchidee_v22_dumps_loads
test_orchidee_v22_dumps_loads(orchidee_v22)
Source code in tests/test_def_file.py
1196 1197 | |
test_orchidee_v22_load
test_orchidee_v22_load(orchidee_v22)
Source code in tests/test_def_file.py
902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 | |
test_orchidee_v4_dumps_loads
test_orchidee_v4_dumps_loads(orchidee_v4)
Source code in tests/test_def_file.py
1264 1265 | |
test_orchidee_v4_load
test_orchidee_v4_load(orchidee_v4)
Source code in tests/test_def_file.py
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 | |
test_run_dynamico_lam_ERA5_France_dumps_loads
test_run_dynamico_lam_ERA5_France_dumps_loads(
run_dynamico_lam_ERA5_France,
)
Source code in tests/test_def_file.py
599 600 | |
test_run_dynamico_lam_ERA5_France_load
test_run_dynamico_lam_ERA5_France_load(
run_dynamico_lam_ERA5_France,
)
Source code in tests/test_def_file.py
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 | |
test_run_dynamico_nbp60_dumps_loads
test_run_dynamico_nbp60_dumps_loads(run_dynamico_nbp60)
Source code in tests/test_def_file.py
545 546 | |
test_run_dynamico_nbp60_load
test_run_dynamico_nbp60_load(run_dynamico_nbp60)
Source code in tests/test_def_file.py
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | |
test_run_lmdz_dumps_loads
test_run_lmdz_dumps_loads(run_lmdz)
Source code in tests/test_def_file.py
496 497 | |
test_run_lmdz_load
test_run_lmdz_load(run_lmdz)
Source code in tests/test_def_file.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | |
vert_L95
vert_L95()
Source code in tests/test_def_file.py
95 96 97 | |
test_def_file_decoder
Unit tests of DefFileDecoder
Functions:
decoder
decoder()
Initialize classical decoder
Source code in tests/test_def_file_decoder.py
8 9 10 11 | |
test_array
test_array(decoder)
Test decoding of arrays
Source code in tests/test_def_file_decoder.py
58 59 60 61 62 | |
test_auto
test_auto(decoder)
Test decoding of auto values
Source code in tests/test_def_file_decoder.py
65 66 67 68 69 70 71 72 | |
test_float
test_float(decoder)
Test decoding float numbers
Source code in tests/test_def_file_decoder.py
32 33 34 35 36 37 38 39 | |
test_include
test_include(decoder)
Test decoding of INCLUDEDEF statements
Source code in tests/test_def_file_decoder.py
14 15 16 17 18 19 | |
test_integer
test_integer(decoder)
Test decoding integer numbers
Source code in tests/test_def_file_decoder.py
42 43 44 45 46 47 48 | |
test_logical
test_logical(decoder)
Test decoding logical values
Source code in tests/test_def_file_decoder.py
22 23 24 25 26 27 28 29 | |
test_string
test_string(decoder)
Test decoding strings (quoted and unqoted)
Source code in tests/test_def_file_decoder.py
51 52 53 54 55 | |
test_def_file_decoder_positions
Unit tests of DefFileDecoder key-value positions
Functions:
decoder
decoder()
Initialize decoder with value position parsing
Source code in tests/test_def_file_decoder_positions.py
8 9 10 11 | |
test_array_positions
test_array_positions(decoder)
Test positions of decoded arrays
Source code in tests/test_def_file_decoder_positions.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
test_auto_positions
test_auto_positions(decoder)
Test positions of decoded auto values
Source code in tests/test_def_file_decoder_positions.py
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 | |
test_compound_positions
test_compound_positions(decoder)
Test decoding of various positions
Source code in tests/test_def_file_decoder_positions.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |
test_float_positions
test_float_positions(decoder)
Test positions of decoded float numbers
Source code in tests/test_def_file_decoder_positions.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
test_include_positions
test_include_positions(decoder)
Test positions of decoded INCLUDEDEF statements
Source code in tests/test_def_file_decoder_positions.py
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 | |
test_integer_positions
test_integer_positions(decoder)
Test position of decoded integer numbers
Source code in tests/test_def_file_decoder_positions.py
74 75 76 77 78 79 80 81 82 83 84 85 86 | |
test_logical_positions
test_logical_positions(decoder)
Test positions of decoded logical values
Source code in tests/test_def_file_decoder_positions.py
44 45 46 47 48 49 50 51 52 53 54 55 | |
test_string_positions
test_string_positions(decoder)
Test positions of decoded strings (quoted and unqoted)
Source code in tests/test_def_file_decoder_positions.py
89 90 91 92 93 94 95 96 97 98 99 | |
test_def_file_encoder
Functions:
encoder
encoder()
Source code in tests/test_def_file_encoder.py
6 7 8 | |
encoder_bool_labels
encoder_bool_labels()
Source code in tests/test_def_file_encoder.py
11 12 13 | |
test_bool
test_bool(encoder)
Source code in tests/test_def_file_encoder.py
16 17 18 | |
test_bool_labels
test_bool_labels(encoder_bool_labels)
Source code in tests/test_def_file_encoder.py
21 22 23 24 25 26 27 | |
test_dict
test_dict(encoder)
Source code in tests/test_def_file_encoder.py
30 31 32 33 34 35 36 37 38 | |
test_float
test_float(encoder)
Source code in tests/test_def_file_encoder.py
41 42 43 44 45 46 | |
test_int
test_int(encoder)
Source code in tests/test_def_file_encoder.py
49 50 51 52 | |
test_list
test_list(encoder)
Source code in tests/test_def_file_encoder.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
test_tuple
test_tuple(encoder)
Source code in tests/test_def_file_encoder.py
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 | |
test_def_file_modify
Functions:
all_datatypes_dict
all_datatypes_dict() -> dict
Source code in tests/test_def_file_modify.py
21 22 23 | |
all_datatypes_modified
all_datatypes_modified() -> str
Source code in tests/test_def_file_modify.py
31 32 33 | |
all_datatypes_str
all_datatypes_str() -> str
Source code in tests/test_def_file_modify.py
26 27 28 | |
includedef_add_str
includedef_add_str() -> str
Source code in tests/test_def_file_modify.py
41 42 43 | |
includedef_everything_str
includedef_everything_str() -> str
Source code in tests/test_def_file_modify.py
46 47 48 | |
includedef_ref
includedef_ref() -> dict
Source code in tests/test_def_file_modify.py
36 37 38 | |
includedef_ref_str
includedef_ref_str() -> str
Source code in tests/test_def_file_modify.py
51 52 53 | |
includedef_remove_str
includedef_remove_str() -> str
Source code in tests/test_def_file_modify.py
56 57 58 | |
test_append_kv
test_append_kv(three_kv_str, three_kv_dict)
Test appending of key-value pairs at the end
Source code in tests/test_def_file_modify.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
test_modify_single_kv
test_modify_single_kv(three_kv_str, three_kv_dict)
Test modifications of key-value pairs at different positions
Source code in tests/test_def_file_modify.py
96 97 98 99 100 101 102 103 104 105 106 | |
test_modify_values_str
test_modify_values_str(
all_datatypes_dict,
all_datatypes_str,
all_datatypes_modified,
)
Source code in tests/test_def_file_modify.py
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 | |
test_modifys_includedef_add
test_modifys_includedef_add(
includedef_ref, includedef_ref_str, includedef_add_str
)
Source code in tests/test_def_file_modify.py
168 169 170 171 | |
test_modifys_includedef_empty
test_modifys_includedef_empty(
includedef_ref,
includedef_ref_str,
includedef_remove_str,
)
Source code in tests/test_def_file_modify.py
182 183 184 185 186 | |
test_modifys_includedef_everything
test_modifys_includedef_everything(
includedef_ref,
includedef_ref_str,
includedef_everything_str,
)
Source code in tests/test_def_file_modify.py
189 190 191 192 193 194 195 196 | |
test_modifys_includedef_ref
test_modifys_includedef_ref(
includedef_ref, includedef_ref_str
)
Test if making no changes doesn't change the input text!
Source code in tests/test_def_file_modify.py
163 164 165 | |
test_modifys_includedef_remove
test_modifys_includedef_remove(
includedef_ref,
includedef_ref_str,
includedef_remove_str,
)
Source code in tests/test_def_file_modify.py
174 175 176 177 178 179 | |
test_null_modify
test_null_modify(all_datatypes_dict, all_datatypes_str)
Test modification with no modifications!
Source code in tests/test_def_file_modify.py
71 72 73 74 75 76 77 78 79 | |
test_remove_single_kv
test_remove_single_kv(three_kv_str, three_kv_dict)
Test removal of key-value pairs at different positions
Source code in tests/test_def_file_modify.py
82 83 84 85 86 87 88 89 90 91 92 93 | |
three_kv_dict
three_kv_dict() -> dict
Source code in tests/test_def_file_modify.py
66 67 68 | |
three_kv_str
three_kv_str() -> str
Source code in tests/test_def_file_modify.py
61 62 63 | |
test_envmodules
Functions:
test_on_spirit
test_on_spirit()
Source code in tests/test_envmodules.py
7 8 9 10 11 12 13 14 15 16 | |
test_flatten_key_dict_view
Testing of the FlattenKeyDictView class
Functions:
fd
fd(test_dict)
Test dictionary converted to a flatten form
Source code in tests/test_flatten_key_dict_view.py
14 15 16 17 | |
fd_sep_at
fd_sep_at(test_dict)
Test dictionary converted to a flatten form with custom flat key separator @
Source code in tests/test_flatten_key_dict_view.py
20 21 22 23 | |
test_contains
test_contains(fd)
Test the in operator
Source code in tests/test_flatten_key_dict_view.py
26 27 28 29 30 31 32 33 34 | |
test_custom_key_separator
test_custom_key_separator(fd_sep_at)
Test using @ as the custom key separator
Source code in tests/test_flatten_key_dict_view.py
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 | |
test_delitem
test_delitem(fd)
Test removing keys from the dict
Source code in tests/test_flatten_key_dict_view.py
63 64 65 66 67 68 69 70 | |
test_dict
test_dict()
Default simple nested dictionary
Source code in tests/test_flatten_key_dict_view.py
8 9 10 11 | |
test_getitem
test_getitem(fd)
Test accessing dict keys
Source code in tests/test_flatten_key_dict_view.py
37 38 39 40 41 42 43 44 45 | |
test_keys
test_keys(fd)
Test returning of flatten keys
Source code in tests/test_flatten_key_dict_view.py
101 102 103 104 | |
test_raise_exception
test_raise_exception(fd)
Test corner cases with invalid or non-existing sub-keys
Source code in tests/test_flatten_key_dict_view.py
107 108 109 110 111 112 113 114 | |
test_setitem
test_setitem(fd)
Test changing values of dict keys
Source code in tests/test_flatten_key_dict_view.py
48 49 50 51 52 53 54 55 56 57 58 59 60 | |
test_mod_file
Functions:
configs
configs(mod_file)
Source code in tests/test_mod_file.py
20 21 22 | |
grisli
grisli(configs)
Source code in tests/test_mod_file.py
35 36 37 | |
ioipsl
ioipsl(configs)
Source code in tests/test_mod_file.py
25 26 27 | |
ipslcm7
ipslcm7(configs)
Source code in tests/test_mod_file.py
30 31 32 | |
mod_file
mod_file()
Source code in tests/test_mod_file.py
8 9 10 11 12 | |
nemo_v40
nemo_v40(configs)
Source code in tests/test_mod_file.py
40 41 42 | |
repos
repos(mod_file)
Source code in tests/test_mod_file.py
15 16 17 | |
test_configuration
test_configuration(configs)
Source code in tests/test_mod_file.py
49 50 | |
test_git_path_repository
test_git_path_repository(repos)
Source code in tests/test_mod_file.py
69 70 71 72 73 74 | |
test_git_repository
test_git_repository(repos)
Source code in tests/test_mod_file.py
53 54 55 56 57 58 | |
test_grisli_configuration
test_grisli_configuration(grisli)
Source code in tests/test_mod_file.py
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | |
test_ioipsl_config
test_ioipsl_config(ioipsl)
Source code in tests/test_mod_file.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
test_ipslcm7_config
test_ipslcm7_config(ipslcm7)
Source code in tests/test_mod_file.py
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 | |
test_nemo_v40_confguration
test_nemo_v40_confguration(nemo_v40)
Source code in tests/test_mod_file.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | |
test_repository
test_repository(repos)
Source code in tests/test_mod_file.py
45 46 | |
test_svn_repository
test_svn_repository(repos)
Source code in tests/test_mod_file.py
61 62 63 64 65 66 | |
test_svn_ssh_repository
test_svn_ssh_repository(repos)
Source code in tests/test_mod_file.py
77 78 79 80 81 82 | |
test_slurm_labelled_logs
Functions:
empty_log
empty_log()
Source code in tests/test_slurm_labelled_logs.py
8 9 10 | |
mixed_log
mixed_log()
Source code in tests/test_slurm_labelled_logs.py
25 26 27 28 29 30 31 | |
process_log
process_log()
Source code in tests/test_slurm_labelled_logs.py
13 14 15 16 17 18 19 20 21 22 | |
test_empty_log
test_empty_log(empty_log)
Source code in tests/test_slurm_labelled_logs.py
34 35 | |
test_mixed_log
test_mixed_log(mixed_log)
Source code in tests/test_slurm_labelled_logs.py
106 107 108 109 110 111 112 113 114 115 116 | |
test_mixed_log_to_files
test_mixed_log_to_files(mixed_log, tmp_path)
Source code in tests/test_slurm_labelled_logs.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
test_only_process_log
test_only_process_log(process_log)
Source code in tests/test_slurm_labelled_logs.py
38 39 40 41 42 43 44 45 46 47 48 49 50 | |
test_only_process_log_to_files
test_only_process_log_to_files(process_log, tmp_path)
Source code in tests/test_slurm_labelled_logs.py
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 | |
test_only_process_log_to_files_remove_ws
test_only_process_log_to_files_remove_ws(
process_log, tmp_path
)
Source code in tests/test_slurm_labelled_logs.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
test_str
Functions:
long_hello_world
long_hello_world()
Source code in tests/test_str.py
6 7 8 | |
test_replace_text_inject
test_replace_text_inject(long_hello_world)
Source code in tests/test_str.py
11 12 13 14 15 16 17 18 19 20 | |
test_replace_text_modify
test_replace_text_modify(long_hello_world)
Source code in tests/test_str.py
29 30 31 32 33 34 35 36 37 | |
test_replace_text_remove
test_replace_text_remove()
Source code in tests/test_str.py
23 24 25 26 | |
test_replace_text_replacements_sort
test_replace_text_replacements_sort(long_hello_world)
Source code in tests/test_str.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |