File: test_generate_scripts.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 (23 lines) | stat: -rw-r--r-- 929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pytest

from tests.support.make_scripts import make_scripts


@pytest.mark.slow
class TestGenerateScripts:
    def test(self):
        scripts = make_scripts()

        scripts.add_script('trash', 'trashcli.put.main', 'main')
        scripts.add_script('trash-put', 'trashcli.put.main', 'main')
        scripts.add_script('trash-list', 'trashcli.list.main', 'main')
        scripts.add_script('trash-restore', 'trashcli.restore.main', 'main')
        scripts.add_script('trash-empty', 'trashcli.empty.main', 'main')
        scripts.add_script('trash-rm', 'trashcli.rm.main', 'main')

        assert scripts.created_scripts == ['trash',
                                           'trash-put',
                                           'trash-list',
                                           'trash-restore',
                                           'trash-empty',
                                           'trash-rm']