tchx84 / Portfolio

A minimalist file manager for those who want to use Linux mobile devices.
GNU General Public License v3.0
87 stars 22 forks source link

AUR fail package tests #325

Open chuckdotsvg opened 10 months ago

chuckdotsvg commented 10 months ago

I noticed that the new version of the package fails pytest and black tests

Here is the output


Inherited environment: SHELL=/bin/bash WINDOWID=94281403684256 COLORTERM=truecolor GTK_THEME=Catppuccin-Mocha-Standard-Mauve-dark ICEAUTHORITY=/home/chuck/.cache/ICEauthority I3SOCK=/run/user/1000/sway-ipc.1000.704.sock PYTHONHASHSEED=0 TEXTDOMAINDIR=/usr/share/locale XDG_DATA_HOME=/home/chuck/.local/share XDG_CONFIG_HOME=/home/chuck/.config GNUPGHOME=/home/chuck/.local/share/gnupg XCURSOR_SIZE=24 EDITOR=nvim XDG_SEAT=seat0 PWD=/home/chuck/.cache/paru/clone/portfolio-file-manager/src SOURCE_DATE_EPOCH=1694107670 LOGNAME=chuck QT_QPA_PLATFORMTHEME=qt5ct XDG_SESSION_TYPE=wayland CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS' MOTD_SHOWN=pam COMMAND_MODE=legacy GTK2_RC_FILES=/home/chuck/.config/gtk-2.0/gtkrc LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now HOME=/home/chuck XSERVERRC=/home/chuck/.config/X11/xserverrc LANG=en_US.UTF-8 HISTFILE=/home/chuck/.local/state/bash/history CARGO_HOME=/home/chuck/.local/share/cargo ERRFILE=/home/chuck/.cache/X11/xsession-errors SWAYSOCK=/run/user/1000/sway-ipc.1000.704.sock WAYLAND_DISPLAY=wayland-1 SSL_CERT_DIR=/etc/ssl/certs RUSTFLAGS='-C opt-level=2 -C target-cpu=native' XDG_CACHE_HOME=/home/chuck/.cache ALACRITTY_SOCKET=/run/user/1000/Alacritty-wayland-1-910.sock XKB_DEFAULT_LAYOUT=it XDG_ACTIVATION_TOKEN=4d51a1d8e3d71098373bbaedca664af0 MAKEFLAGS=-j2 XDG_SESSION_CLASS=user TERM=alacritty RUSTUP_HOME=/home/chuck/.local/share/rustup USER=chuck NPM_CONFIG_USERCONFIG=/home/chuck/.config/npm/npmrc XINITRC=/home/chuck/.config/X11/xinitrc SHLVL=2 MOZ_ENABLE_WAYLAND=1 PAGER=less MOZ_USE_XINPUT2=1 XDG_VTNR=7 XDG_SESSION_ID=2 XDG_STATE_HOME=/home/chuck/.local/state XDG_RUNTIME_DIR=/run/user/1000 SSL_CERT_FILE=/etc/ssl/cert.pem DEBUGINFOD_URLS='https://debuginfod.artixlinux.org ' GREETD_SOCK=/run/greetd-470.sock QT_AUTO_SCREEN_SCALE_FACTOR=1 LC_COLLATE=C CHOST=x86_64-pc-linux-gnu PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin ALACRITTY_LOG=/tmp/Alacritty-910.log CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection' DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-OzvhUWxuQJ,guid=fcdb7a84a23780854175882d64fa04a6 MAIL=/var/spool/mail/chuck ALACRITTY_WINDOW_ID=94281403684256 QT_SCALE_FACTOR=0.8 GIO_LAUNCHED_DESKTOP_FILE_PID=910 GIO_LAUNCHED_DESKTOP_FILE=/home/chuck/.local/share/applications/Alacritty.desktop OLDPWD=/home/chuck/.cache/paru/clone/portfolio-file-manager/src TEXTDOMAIN=pacman-scripts _=/usr/bin/meson 

==================================== 1/6 =====================================
test:         Validate desktop file
start time:   17:27:57
duration:     0.05s
result:       exit status 0
command:      MALLOC_PERTURB_=89 /usr/bin/desktop-file-validate data/dev.tchx84.Portfolio.desktop
----------------------------------- stdout -----------------------------------
data/dev.tchx84.Portfolio.desktop: hint: value item "FileManager" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: System;FileTools
==============================================================================

==================================== 2/6 =====================================
test:         Validate schema file
start time:   17:27:57
duration:     0.03s
result:       exit status 0
command:      MALLOC_PERTURB_=93 /usr/bin/glib-compile-schemas --strict --dry-run /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/data
==============================================================================

==================================== 3/6 =====================================
test:         Validate appstream file
start time:   17:27:57
duration:     0.10s
result:       exit status 0
command:      MALLOC_PERTURB_=122 /usr/bin/appstream-util validate --nonet data/dev.tchx84.Portfolio.metainfo.xml
----------------------------------- stdout -----------------------------------
data/dev.tchx84.Portfolio.metainfo.xml: OK
==============================================================================

==================================== 4/6 =====================================
test:         pyflakes
start time:   17:27:57
duration:     1.31s
result:       exit status 0
command:      MALLOC_PERTURB_=200 /usr/bin/pyflakes /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py
==============================================================================

==================================== 5/6 =====================================
test:         black
start time:   17:27:57
duration:     1.98s
result:       exit status 1
command:      MALLOC_PERTURB_=73 /usr/bin/black --check /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py
----------------------------------- stderr -----------------------------------
would reformat /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py

Oh no! 💥 💔 💥
1 file would be reformatted, 1 file would be left unchanged.
==============================================================================

==================================== 6/6 =====================================
test:         pytest
start time:   17:27:57
duration:     2.88s
result:       exit status 1
command:      MALLOC_PERTURB_=16 /usr/bin/pytest /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py
----------------------------------- stdout -----------------------------------
============================= test session starts ==============================
platform linux -- Python 3.11.5, pytest-7.4.1, pluggy-1.3.0
rootdir: /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build
collected 39 items

tests/window.py .F.F.F.FF.F.F....F.                                      [ 48%]
tests/worker.py ..........s.........                                     [100%]

=================================== FAILURES ===================================
________________________________ test_load_all _________________________________

    def test_load_all():
        # should list only "folder" and "file"
>       assert len(window.files.sorted) == 2
E       assert 3 == 2
E        +  where 3 = len(<Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)>)
E        +    where <Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)> = <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)>.sorted
E        +      where <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)> = <window.PortfolioWindow object at 0x7f7205ef27c0 (PortfolioWindow at 0x555b8f5930c0)>.files

tests/window.py:76: AssertionError
_______________________________ test_select_all ________________________________

    def test_select_all():
        # "folder" and "file" should be selected
        window.files.switch_to_selection_mode()
        window.files.select_all()
        update_gtk()
        model, treepaths = window.files.selection.get_selected_rows()

>       assert len(treepaths) == 2
E       assert 3 == 2
E        +  where 3 = len([<Gtk.TreePath object at 0x7f7206080830 (GtkTreePath at 0x555b8f2fcb30)>, <Gtk.TreePath object at 0x7f7206080650 (GtkTreePath at 0x555b8f375c20)>, <Gtk.TreePath object at 0x7f72060807d0 (GtkTreePath at 0x555b8f2fc400)>])

tests/window.py:95: AssertionError
_______________________________ test_new_folder ________________________________

    def test_new_folder():
        # "New Folder" should be created and selected
        window.files.unselect_all()
        update_gtk()
        window._on_new_folder(None)
        model, treepaths = window.files.selection.get_selected_rows()

>       assert len(window.files.sorted) == 3
E       assert 4 == 3
E        +  where 4 = len(<Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)>)
E        +    where <Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)> = <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)>.sorted
E        +      where <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)> = <window.PortfolioWindow object at 0x7f7205ef27c0 (PortfolioWindow at 0x555b8f5930c0)>.files

tests/window.py:117: AssertionError
___________________________ test_navigation_previous ___________________________

    def test_navigation_previous():
        # go back to "folder"
        window._on_go_previous(None)
        update_gtk()

>       assert len(window.files.sorted) == 3
E       assert 4 == 3
E        +  where 4 = len(<Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)>)
E        +    where <Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)> = <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)>.sorted
E        +      where <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)> = <window.PortfolioWindow object at 0x7f7205ef27c0 (PortfolioWindow at 0x555b8f5930c0)>.files

tests/window.py:143: AssertionError
__________________________________ test_copy ___________________________________

    def test_copy():
        # "file" should be selected and copied
        window.files.switch_to_selection_mode()
        window.files._select_row(window.files.sorted[2].iter)
        window._on_copy_clicked(None)

        assert len(window._to_copy) == 1
>       assert window._to_copy[0][0] == TEST_HOME_FILE
E       AssertionError: assert '/home/chuck/...chx84/.hidden' == '/home/chuck/...e/tchx84/file'
E         Skipping 86 identical leading characters in diff, use -v to show
E         - me/tchx84/file
E         ?           ^ ^
E         + me/tchx84/.hidden
E         ?           ^^ ^^ +

tests/window.py:158: AssertionError
_______________________________ test_copy_paste ________________________________

    def test_copy_paste():
        # paste "file" and it should be listed
        window._on_paste_clicked(None)
        window._worker.join()
        update_gtk()

        assert len(window.files.sorted) == 1
>       assert window.files.sorted[0][window.files.PATH_COLUMN] == os.path.join(
            TEST_HOME_DIR, TEST_NEW_FOLDER, TEST_NEW_FILE
        )
E       AssertionError: assert '/home/chuck/...older/.hidden' == '/home/chuck/...w Folder/file'
E         Skipping 97 identical leading characters in diff, use -v to show
E         - ew Folder/file
E         ?           ^ ^
E         + ew Folder/.hidden
E         ?           ^^ ^^ +

tests/window.py:176: AssertionError
_________________________ test_original_file_untouched _________________________

    def test_original_file_untouched():
        # go to "folder" and the original "file" is intact
        window._on_go_previous(None)
        update_gtk()

>       assert len(window.files.sorted) == 3
E       assert 4 == 3
E        +  where 4 = len(<Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)>)
E        +    where <Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)> = <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)>.sorted
E        +      where <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)> = <window.PortfolioWindow object at 0x7f7205ef27c0 (PortfolioWindow at 0x555b8f5930c0)>.files

tests/window.py:213: AssertionError
_____________________________ test_new_folder_gone _____________________________

    def test_new_folder_gone():
        # "New Folder" must be gone
        window._on_go_previous(None)
        update_gtk()

>       assert len(window.files.sorted) == 2
E       assert 3 == 2
E        +  where 3 = len(<Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)>)
E        +    where <Gtk.TreeModelSort object at 0x7f72060a7980 (GtkTreeModelSort at 0x555b8f663cb0)> = <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)>.sorted
E        +      where <files.PortfolioFiles object at 0x7f720609df00 (PortfolioFiles at 0x555b8f660370)> = <window.PortfolioWindow object at 0x7f7205ef27c0 (PortfolioWindow at 0x555b8f5930c0)>.files

tests/window.py:295: AssertionError
=============================== warnings summary ===============================
tests/window.py:181
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py:181: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/window.py:262
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/window.py:262: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:222
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:222: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:332
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:332: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:354
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:354: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:377
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:377: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:412
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:412: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:447
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:447: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:488
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:488: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:517
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:517: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:550
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:550: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/worker.py:579
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/build/tests/worker.py:579: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(5)

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/utils.py:30: DeprecationWarning: invalid escape sequence '\('
    components = re.split("(\(\d+\)$)", name)

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/settings.py:32: PyGIDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "schema" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
    self._settings = Gio.Settings(self.SCHEMA)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1635: DeprecationWarning: Gtk.TreeModelFilter.set_visible_func is deprecated
    super(TreeModelFilter, self).set_visible_func(func, data)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:971: DeprecationWarning: Gtk.TreeSortable.set_default_sort_func is deprecated
    super(TreeSortable, self).set_default_sort_func(sort_func, user_data)

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:76: DeprecationWarning: Gtk.TreeSelection.set_select_function is deprecated
    self.selection.set_select_function(self._on_select)

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/places.py:95: DeprecationWarning: Gtk.Widget.get_style_context is deprecated
    self._devices_group.get_style_context().add_class("devices-group")

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/places.py:95: DeprecationWarning: Gtk.StyleContext.add_class is deprecated
    self._devices_group.get_style_context().add_class("devices-group")

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:363: DeprecationWarning: Gtk.TreeSelection.set_mode is deprecated
    self.selection.set_mode(Gtk.SelectionMode.NONE)

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:443: DeprecationWarning: Gtk.ListStore.clear is deprecated
    self.liststore.clear()

tests/window.py::test_create_window
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:129: DeprecationWarning: Gtk.TreeSelection.count_selected_rows is deprecated
    return self.selection.count_selected_rows()

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:897: DeprecationWarning: Gtk.TreeModel.get_n_columns is deprecated
    n_columns = self.get_n_columns()

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:921: DeprecationWarning: Gtk.TreeModel.get_column_type is deprecated
    return GObject.Value(self.get_column_type(column), value)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1008: DeprecationWarning: Gtk.ListStore.insert_with_values is deprecated
    treeiter = self.insert_with_values(position, columns, row)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1136: DeprecationWarning: Gtk.TreeModel.get_value is deprecated
    return self.model.get_value(self.iter, key)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:813: DeprecationWarning: Gtk.TreeModel.iter_n_children is deprecated
    return self.iter_n_children(None)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1226: DeprecationWarning: Gtk.TreePath.new_from_string is deprecated
    return TreePath.new_from_string(path)

tests/window.py::test_create_window
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1378: DeprecationWarning: Gtk.TreeView.scroll_to_cell is deprecated
    super(TreeView, self).scroll_to_cell(path, column, use_align, row_align, col_align)

tests/window.py::test_default_selection
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1446: DeprecationWarning: Gtk.TreeSelection.get_selected_rows is deprecated
    rows, model = super(TreeSelection, self).get_selected_rows()

tests/window.py::test_select_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:354: DeprecationWarning: Gtk.TreeSelection.select_all is deprecated
    self.selection.select_all()

tests/window.py::test_unselect_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:359: DeprecationWarning: Gtk.TreeSelection.unselect_all is deprecated
    self.selection.unselect_all()

tests/window.py::test_new_folder
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:207: DeprecationWarning: Gtk.TreeModelFilter.convert_child_iter_to_iter is deprecated
    result, row = self.filtered.convert_child_iter_to_iter(row)

tests/window.py::test_new_folder
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:208: DeprecationWarning: Gtk.TreeModelSort.convert_child_iter_to_iter is deprecated
    result, row = self.sorted.convert_child_iter_to_iter(row)

tests/window.py::test_new_folder
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:349: DeprecationWarning: Gtk.TreeSelection.select_iter is deprecated
    self.selection.select_iter(row)

tests/window.py::test_open_folder
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:265: DeprecationWarning: Gtk.TreeSelection.get_mode is deprecated
    if self.selection.get_mode() == Gtk.SelectionMode.NONE:

tests/window.py::test_open_folder
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:874: DeprecationWarning: Gtk.TreeModel.get_iter is deprecated
    success, aiter = super(TreeModel, self).get_iter(path)

tests/window.py::test_navigation_previous
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:199: DeprecationWarning: Gtk.TreeModel.get_path is deprecated
    treepath = self.sorted.get_path(row)

tests/window.py::test_copy
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:388: DeprecationWarning: Gtk.TreeRowReference.new is deprecated
    Gtk.TreeRowReference.new(model, treepath),

tests/window.py::test_delete_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:425: DeprecationWarning: Gtk.TreeRowReference.valid is deprecated
    if row is None or not row.valid():

tests/window.py::test_delete_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:428: DeprecationWarning: Gtk.TreeRowReference.get_path is deprecated
    treepath = row.get_path()

tests/window.py::test_delete_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:429: DeprecationWarning: Gtk.TreeModelSort.convert_path_to_child_path is deprecated
    treepath = self.sorted.convert_path_to_child_path(treepath)

tests/window.py::test_delete_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:430: DeprecationWarning: Gtk.TreeModelFilter.convert_path_to_child_path is deprecated
    treepath = self.filtered.convert_path_to_child_path(treepath)

tests/window.py::test_delete_all
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:432: DeprecationWarning: Gtk.ListStore.remove is deprecated
    self.liststore.remove(self.liststore.get_iter(treepath))

tests/window.py::test_rename
  /home/chuck/.cache/paru/clone/portfolio-file-manager/src/Portfolio-1.0.0/src/files.py:438: DeprecationWarning: Gtk.TreeView.set_cursor_on_cell is deprecated
    self.treeview.set_cursor_on_cell(

tests/window.py::test_rename
  /usr/lib/python3.11/site-packages/gi/overrides/Gtk.py:1050: DeprecationWarning: Gtk.ListStore.set_value is deprecated
    Gtk.ListStore.set_value(self, treeiter, column, value)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/window.py::test_load_all - assert 3 == 2
FAILED tests/window.py::test_select_all - assert 3 == 2
FAILED tests/window.py::test_new_folder - assert 4 == 3
FAILED tests/window.py::test_navigation_previous - assert 4 == 3
FAILED tests/window.py::test_copy - AssertionError: assert '/home/chuck/...ch...
FAILED tests/window.py::test_copy_paste - AssertionError: assert '/home/chuck...
FAILED tests/window.py::test_original_file_untouched - assert 4 == 3
FAILED tests/window.py::test_new_folder_gone - assert 3 == 2
============= 8 failed, 30 passed, 1 skipped, 46 warnings in 1.96s =============
==============================================================================

Summary of Failures:

5/6 black                   FAIL            1.98s   exit status 1
6/6 pytest                  FAIL            2.88s   exit status 1

Ok:                 4   
Expected Fail:      0   
Fail:               2   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
tchx84 commented 10 months ago

Hi @chuckdotsvg ,

I can't reproduce this:

  1. setup Arch toolbox https://wiki.archlinux.org/title/Toolbox
  2. install dependencies according to https://aur.archlinux.org/packages/portfolio-file-manager
  3. meson setup _tests && cd _tests && ninja && meson test
1/5 Validate desktop file          OK              0.03s
2/5 Validate appstream file        OK              0.02s
3/5 Validate schema file           OK              0.02s
4/5 black                          OK              0.34s
5/5 pytest                         OK              0.67s

Ok:                 5   
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
============================= test session starts ==============================
platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
...

tests/window.py ...................                                      [ 45%]
tests/worker.py ..........s.........                                     [ 92%]
tests/service.py ...                                                     [100%]

Can you describe your setup in detail ?

chuckdotsvg commented 10 months ago

I have artix-linux with dinit rc, 6.4.12 kernel I tried with toolbox and the package was installed successfully. I tried to update packages and now the python-black issue is gone; but pytest error is still here. I could make a guess, maybe due to different packages with small patches, but I have no problem installing the git version of the package in AUR, but with stable version tests fail. I really don't know why

tchx84 commented 10 months ago

I have artix-linux with dinit rc, 6.4.12 kernel I tried with toolbox and the package was installed successfully. I tried to update packages and now the python-black issue is gone; but pytest error is still here. I could make a guess, maybe due to different packages with small patches, but I have no problem installing the git version of the package in AUR, but with stable version tests fail. I really don't know why

Random guess, have you used Portfolio in that same system before? Maybe:

  1. Portfolio settings are available to these tests.. and
  2. Show hidden filter setting is set to true.

Hence, you get those results.

Try settings those to the default values and re-try tests?

yochananmarqos commented 1 day ago

@tchx84 AUR and Manjaro ARM packager here. I just built it fine in a clean chroot and don't believe I've ever had tests fail.

Either way, this is a obviously a stale issue and can be closed.