File: test_version.py

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (14 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (C) 2011-2024 Andrea Francia Trivolzio(PV) Italy

from tests.test_list.cmd.support.trash_list_user import trash_list_user

user = trash_list_user


class TestVersion:
    def test_should_output_the_version(self, user):
        user.set_version('1.2.3')

        output = user.run_trash_list('--version')

        assert output.whole_output() == 'trash-list 1.2.3\n'