about summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Ignore encoding in manpage testtoonn2021-08-271-3/+2
|
* tests: Pylint complains about open and literalstoonn2021-08-271-2/+4
| | | | | | | | | So let's use our new open23 to circumvent the lint. Updating the function to default to UTF-8. This is not the greatest solution but changing to `io.open` has performance repercussions and using `codecs.open` might change semantics so it would need thorough testing.
* test_py2_compat: Test the new with-statement checktoonn2021-08-081-0/+26
|
* py2_compat: Fix formatting for PEP8toonn2021-08-081-3/+3
|
* py2_compat: Added check for with Popentoonn2021-08-081-1/+19
| | | | | Popen objects became context managers after Python 3.2 so we can't use them as such without a wrapper.
* tests.manpage_completion: Use withtoonn2021-07-201-1/+2
| | | | | This test revealed an exception that wasn't covered in `ranger/__init__.py` due to the refactor to a with-statement.
* Fix test_py2_compat formattingtoonn2020-11-111-0/+1
|
* Shortcut py2 incompatible pytest teststoonn2020-11-111-0/+11
| | | | | | Three of our pytest tests aren't compatible with python 2 by returning early from these testcases and always making them pass, we avoid false negatives in CI results.
* Apply some PEP8 love to the pylint module and teststoonn2020-07-052-20/+17
|
* Implement python 2 compatibility checkstoonn2020-07-053-0/+287
| | | | | | | | | We have been stuck on pylint <2 for a long time now because it dropped some of the python 2 lints we rely on. We maintain compatibility with python 2.6+ and 3.5+ and a lack of lints makes especially the former much harder. Incompatibilities had already snuck in in the form of implicit format specs. By implementing a custom checker we can make sure this doesn't happen again.
* Refactor the bookmark validation codeWojciech Siewierski2019-01-271-2/+7
| | | | | Now it's trivial for the test module to mock the bookmark validation without introducing too much logic about this mocking to the actual class.
* Make it easier to test bookmarks by optionally disabling validationWojciech Siewierski2019-01-271-2/+2
| | | | | The test bookmarks were intentionally bogus as we cannot reliably predict valid paths on the test system, so validation doesn't make any sense there.
* updated original filenameJon Erling Hustadnes2018-12-181-1/+1
|
* corrected for python 2.7Jon Erling Hustadnes2018-12-171-3/+3
|
* Added check if bookmark file is a symlink.Jon Erling Hustadnes2018-12-171-0/+17
| | | | | If it is, the os.rename is performed on the original file path instead of overwriting the symlink.
* Implemented unit test for recent fixtau32018-02-152-0/+18
|
* attempt to fix CIhut2018-01-281-0/+2
|
* fix testshut2018-01-281-4/+5
|
* added test script that checks for man page completenesshut2018-01-261-0/+54
|
* container.fsobject: Fix natural sortnfnty2017-01-241-4/+23
| | | | Fixes #749
* Python 3 division: Import `division` from `__future__`nfnty2017-01-213-3/+3
|
* linting: Python 2 compat: Import from `__future__`nfnty2017-01-173-0/+6
|
* linting: pylint and flake8nfnty2017-01-173-54/+54
|
* Fix misspellingsstepshal2016-06-262-2/+2
|
* Remove whitespace in blank linesstepshal2016-06-191-2/+2
|
* Merge branch 'E301' of https://github.com/stepshal/rangerhut2016-06-181-0/+2
|\
| * Add one blank line where is expectedstepshal2016-06-161-0/+2
| |
* | Add two blank lines where is expectedstepshal2016-06-162-0/+2
|/
* Make exactly one space after commastepshal2016-06-061-1/+1
| | | | Update commands.py
* test_fsobject: fix syntax errorhut2016-03-251-2/+2
|
* Remove accidental prints for debugginglverweijen2016-03-221-4/+0
|
* Make natural_sort's behaviour better definedlverweijen2016-03-081-0/+38
| | | | | | | The old version relied on comparing integers to strings which is not supported in Python 3 anymore and not a good practice in general anyway. It was also the case that 'hello2' was ordered before 'hello' instead of after, which I found to be non-intuitive.
* container.history: fixed rebase() unit testhut2016-02-281-3/+4
|
* bookmarks: add testLaurent Charignon2016-01-311-0/+52
|
* history: fix logic error and add test for all the methodsLaurent Charignon2016-01-311-2/+96
|
* tests: add a dummy pytest test and add it to the make test stepLaurent Charignon2016-01-314-0/+5
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 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 864 865 866 867 868 869 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 896 897 898 899 900 901 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