-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.py
32 lines (26 loc) · 876 Bytes
/
tasks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
from invoke import task
from tests.desktop_tests import DesktopTests
@task
def open_test(c, version=None, update_from=None, display=False, config=None, telegram=False, license=None):
DesktopTests(
version=version,
update_from=update_from,
virtual_display=display,
custom_config=config if config else None,
telegram=telegram,
license_file_path=license
).open_test()
@task
def install_desktop(c, version=None, config=None, license=None):
test = DesktopTests(
version=version,
virtual_display=False,
custom_config=config if config else None,
license_file_path=license
)
test.install_package(test.version, test.desktop)
test.check_installed()
test.check_correct_version()
test.desktop.set_license()
test.desktop.open(debug_mode=True)