3,073 changes: 1,488 additions & 1,585 deletions qubesmanager/tests/test_qube_manager.py

Large diffs are not rendered by default.

1,971 changes: 1,480 additions & 491 deletions qubesmanager/tests/test_vm_settings.py

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions qubesmanager/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# The Qubes OS Project, https://www.qubes-os.org
# The Qubes OS Project, https://www.qubes-os.org/
#
# Copyright (C) 2012 Agnieszka Kostrzewa <agnieszka.kostrzewa@gmail.com>
# Copyright (C) 2012 Marek Marczykowski-Górecki
Expand All @@ -8,19 +7,21 @@
# Copyright (C) 2020 Marta Marczykowska-Górecka
# <marmarta@invisiblethingslab.com>
#
# This program is free software: you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import itertools
import os
import re
Expand Down
6 changes: 1 addition & 5 deletions rpm_spec/qmgr.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/bin/qubes-vm-settings
/usr/bin/qubes-vm-create
/usr/bin/qubes-vm-clone
/usr/bin/qubes-vm-boot-from-device
/usr/bin/qubes-backup
Expand All @@ -84,7 +83,6 @@ rm -rf $RPM_BUILD_ROOT
%{python3_sitelib}/qubesmanager/log_dialog.py
%{python3_sitelib}/qubesmanager/about.py
%{python3_sitelib}/qubesmanager/informationnotes.py
%{python3_sitelib}/qubesmanager/create_new_vm.py
%{python3_sitelib}/qubesmanager/clone_vm.py
%{python3_sitelib}/qubesmanager/common_threads.py
%{python3_sitelib}/qubesmanager/qube_manager.py
Expand All @@ -99,7 +97,6 @@ rm -rf $RPM_BUILD_ROOT
%{python3_sitelib}/qubesmanager/ui_backupdlg.py
%{python3_sitelib}/qubesmanager/ui_bootfromdevice.py
%{python3_sitelib}/qubesmanager/ui_multiselectwidget.py
%{python3_sitelib}/qubesmanager/ui_newappvmdlg.py
%{python3_sitelib}/qubesmanager/ui_newfwruledlg.py
%{python3_sitelib}/qubesmanager/ui_restoredlg.py
%{python3_sitelib}/qubesmanager/ui_settingsdlg.py
Expand All @@ -118,17 +115,16 @@ rm -rf $RPM_BUILD_ROOT

%{python3_sitelib}/qubesmanager/tests/__pycache__
%{python3_sitelib}/qubesmanager/tests/__init__.py
%{python3_sitelib}/qubesmanager/tests/conftest.py
%{python3_sitelib}/qubesmanager/tests/test_backup.py
%{python3_sitelib}/qubesmanager/tests/test_backup_utils.py
%{python3_sitelib}/qubesmanager/tests/test_qube_manager.py
%{python3_sitelib}/qubesmanager/tests/test_create_new_vm.py
%{python3_sitelib}/qubesmanager/tests/test_vm_settings.py
%{python3_sitelib}/qubesmanager/tests/test_clone_vm.py

%dir %{python3_sitelib}/qubesmanager-*.egg-info
%{python3_sitelib}/qubesmanager-*.egg-info/*

/usr/share/applications/qubes-vm-create.desktop
/usr/share/applications/qubes-backup.desktop
/usr/share/applications/qubes-backup-restore.desktop
/usr/share/applications/qubes-qube-manager.desktop
Expand Down
3 changes: 3 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python3 -m coverage run --omit="test-packages/*,qubesmanager/tests/*,*/core-admin-client/*,qubesmanager/ui*" -m pytest -vv qubesmanager/tests
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
entry_points={
'console_scripts': [
'qubes-vm-settings = qubesmanager.settings:main',
'qubes-vm-create = qubesmanager.create_new_vm:main',
'qubes-vm-clone = qubesmanager.clone_vm:main',
'qubes-vm-boot-from-device = qubesmanager.bootfromdevice:main',
'qubes-backup = qubesmanager.backup:main',
Expand Down
4 changes: 0 additions & 4 deletions test-packages/qubesadmin/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion test-packages/qubesadmin/backup/__init__.py

This file was deleted.

19 changes: 0 additions & 19 deletions test-packages/qubesadmin/backup/restore/__init__.py

This file was deleted.

17 changes: 0 additions & 17 deletions test-packages/qubesadmin/device_protocol.py

This file was deleted.

7 changes: 0 additions & 7 deletions test-packages/qubesadmin/events.py

This file was deleted.

45 changes: 0 additions & 45 deletions test-packages/qubesadmin/exc.py

This file was deleted.

4 changes: 0 additions & 4 deletions test-packages/qubesadmin/firewall.py

This file was deleted.

9 changes: 0 additions & 9 deletions test-packages/qubesadmin/tools/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions test-packages/qubesadmin/tools/qvm_start.py

This file was deleted.

13 changes: 0 additions & 13 deletions test-packages/qubesadmin/utils.py

This file was deleted.

290 changes: 0 additions & 290 deletions ui/newappvmdlg.ui

This file was deleted.

2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.7
4.3.8