|
668 | 668 |
|
669 | 669 | (ert-deftest impostman-test-import-file () |
670 | 670 | "Test import of a file with a Postman collection." |
671 | | - (setq impostman-test-output-test-alist |
672 | | - '((init . ignore) |
673 | | - (header . impostman-test-output-test-header) |
674 | | - (item . impostman-test-output-test-item) |
675 | | - (request . impostman-test-output-test-request) |
676 | | - (footer . impostman-test-output-test-footer) |
677 | | - (end . ignore))) |
| 671 | + (defvar impostman-test-output-test-alist |
| 672 | + '((init . ignore) |
| 673 | + (header . impostman-test-output-test-header) |
| 674 | + (item . impostman-test-output-test-item) |
| 675 | + (request . impostman-test-output-test-request) |
| 676 | + (footer . impostman-test-output-test-footer) |
| 677 | + (end . ignore))) |
678 | 678 | (let* ((verb-output |
679 | 679 | (impostman-test--get-file-contents "tests/verb.org")) |
680 | 680 | (restclient-output |
|
707 | 707 |
|
708 | 708 | (ert-deftest impostman-test-import-string () |
709 | 709 | "Test import of a string with a Postman collection." |
710 | | - (setq impostman-test-output-test-alist |
711 | | - '((init . ignore) |
712 | | - (header . impostman-test-output-test-header) |
713 | | - (item . impostman-test-output-test-item) |
714 | | - (request . impostman-test-output-test-request) |
715 | | - (footer . impostman-test-output-test-footer) |
716 | | - (end . ignore))) |
| 710 | + (defvar impostman-test-output-test-alist |
| 711 | + '((init . ignore) |
| 712 | + (header . impostman-test-output-test-header) |
| 713 | + (item . impostman-test-output-test-item) |
| 714 | + (request . impostman-test-output-test-request) |
| 715 | + (footer . impostman-test-output-test-footer) |
| 716 | + (end . ignore))) |
717 | 717 | (let* ((collection |
718 | 718 | (impostman-test--get-file-contents "tests/collection.json")) |
719 | 719 | (verb-output |
|
0 commit comments