|
427 | 427 | "special": False, |
428 | 428 | "description": "Description", |
429 | 429 | }, |
430 | | - {"key": "Delivery method", "label": "Other", "special": False, "description": "Description"}, |
| 430 | + {"key": "Delivery Method", "label": "Other", "special": False, "description": "Description"}, |
431 | 431 | { |
432 | 432 | "key": "Phenotypic Assay Mechanism", |
433 | 433 | "label": "Other", |
|
442 | 442 | "special": False, |
443 | 443 | "description": "Description", |
444 | 444 | }, |
| 445 | + { |
| 446 | + "key": "Phenotypic Assay Profiling Strategy", |
| 447 | + "label": "Shotgun sequencing", |
| 448 | + "code": None, |
| 449 | + "special": False, |
| 450 | + "description": "Description", |
| 451 | + }, |
445 | 452 | ] |
446 | 453 |
|
447 | 454 | TEST_KEYWORDS = [ |
|
470 | 477 | }, |
471 | 478 | }, |
472 | 479 | { |
473 | | - "keyword": {"key": "Delivery method", "label": "Other", "special": False, "description": "Description"}, |
| 480 | + "keyword": {"key": "Delivery Method", "label": "Other", "special": False, "description": "Description"}, |
474 | 481 | "description": "Details of delivery method", |
475 | 482 | }, |
476 | 483 | ] |
|
492 | 499 | "methodText": "Methods", |
493 | 500 | "keywords": [ |
494 | 501 | { |
495 | | - "keyword": {"key": "Delivery method", "label": "Other", "special": False, "description": "Description"}, |
| 502 | + "keyword": {"key": "Delivery Method", "label": "Other", "special": False, "description": "Description"}, |
496 | 503 | "description": "Details of delivery method", |
497 | 504 | }, |
498 | 505 | ], |
|
572 | 579 | "keywords": [ |
573 | 580 | { |
574 | 581 | "recordType": "ExperimentControlledKeyword", |
575 | | - "keyword": {"key": "Delivery method", "label": "Other", "special": False, "description": "Description"}, |
| 582 | + "keyword": {"key": "Delivery Method", "label": "Other", "special": False, "description": "Description"}, |
576 | 583 | "description": "Details of delivery method", |
577 | 584 | }, |
578 | 585 | ], |
|
587 | 594 | "numScoreSets": 0, # NOTE: This is context-dependent and may need overriding per test |
588 | 595 | } |
589 | 596 |
|
| 597 | +TEST_EXPERIMENT_WITH_UPDATE_KEYWORD_RESPONSE = { |
| 598 | + "recordType": "Experiment", |
| 599 | + "title": "Test Experiment Title", |
| 600 | + "shortDescription": "Test experiment", |
| 601 | + "abstractText": "Abstract", |
| 602 | + "methodText": "Methods", |
| 603 | + "createdBy": { |
| 604 | + "recordType": "User", |
| 605 | + "firstName": TEST_USER["first_name"], |
| 606 | + "lastName": TEST_USER["last_name"], |
| 607 | + "orcidId": TEST_USER["username"], |
| 608 | + }, |
| 609 | + "modifiedBy": { |
| 610 | + "recordType": "User", |
| 611 | + "firstName": TEST_USER["first_name"], |
| 612 | + "lastName": TEST_USER["last_name"], |
| 613 | + "orcidId": TEST_USER["username"], |
| 614 | + }, |
| 615 | + "creationDate": date.today().isoformat(), |
| 616 | + "modificationDate": date.today().isoformat(), |
| 617 | + "scoreSetUrns": [], |
| 618 | + "contributors": [], |
| 619 | + "keywords": [ |
| 620 | + { |
| 621 | + "recordType": "ExperimentControlledKeyword", |
| 622 | + "keyword": { |
| 623 | + "key": "Phenotypic Assay Profiling Strategy", |
| 624 | + "label": "Shotgun sequencing", |
| 625 | + "special": False, |
| 626 | + "description": "Description" |
| 627 | + }, |
| 628 | + "description": "Details of phenotypic assay profiling strategy", |
| 629 | + }, |
| 630 | + ], |
| 631 | + "doiIdentifiers": [], |
| 632 | + "primaryPublicationIdentifiers": [], |
| 633 | + "secondaryPublicationIdentifiers": [], |
| 634 | + "rawReadIdentifiers": [], |
| 635 | + # keys to be set after receiving response |
| 636 | + "urn": None, |
| 637 | + "experimentSetUrn": None, |
| 638 | + "officialCollections": [], |
| 639 | + "numScoreSets": 0, # NOTE: This is context-dependent and may need overriding per test |
| 640 | +} |
| 641 | + |
590 | 642 | TEST_EXPERIMENT_WITH_KEYWORD_HAS_DUPLICATE_OTHERS_RESPONSE = { |
591 | 643 | "recordType": "Experiment", |
592 | 644 | "title": "Test Experiment Title", |
|
622 | 674 | }, |
623 | 675 | { |
624 | 676 | "recordType": "ExperimentControlledKeyword", |
625 | | - "keyword": {"key": "Delivery method", "label": "Other", "special": False, "description": "Description"}, |
| 677 | + "keyword": {"key": "Delivery Method", "label": "Other", "special": False, "description": "Description"}, |
626 | 678 | "description": "Description", |
627 | 679 | }, |
628 | 680 | ], |
|
0 commit comments