Skip to content

Commit

Permalink
tests: adjust TC_00_QubesDaemonProtocol for reorganized api module
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Jun 21, 2017
1 parent ea0cbe3 commit c1f4c21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,10 @@ def load_tests(loader, tests, pattern): # pylint: disable=unused-argument
'qubes.tests.vm.appvm',
'qubes.tests.app',
'qubes.tests.tarwriter',
'qubes.tests.api',
'qubes.tests.api_admin',
'qubes.tests.api_misc',
'qubespolicy.tests',
'qubes.tests.tools.qubesd',
):
tests.addTests(loader.loadTestsFromName(modname))

Expand Down
4 changes: 1 addition & 3 deletions qubes/tests/tools/qubesd.py → qubes/tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
import unittest.mock

import qubes.api
import qubes.api.admin
import qubes.tests
import qubes.tools.qubesd


class TestMgmt(object):
Expand Down Expand Up @@ -102,7 +100,7 @@ def setUp(self):
asyncio.open_connection(sock=self.sock_client))

connect_coro = self.loop.create_connection(
lambda: qubes.tools.qubesd.QubesDaemonProtocol(
lambda: qubes.api.QubesDaemonProtocol(
TestMgmt, app=self.app),
sock=self.sock_server)
self.transport, self.protocol = self.loop.run_until_complete(
Expand Down
2 changes: 1 addition & 1 deletion rpm_spec/core-dom0.spec
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ fi
%{python3_sitelib}/qubes/tests/run.py
%{python3_sitelib}/qubes/tests/extra.py

%{python3_sitelib}/qubes/tests/api.py
%{python3_sitelib}/qubes/tests/api_admin.py
%{python3_sitelib}/qubes/tests/api_misc.py
%{python3_sitelib}/qubes/tests/app.py
Expand Down Expand Up @@ -333,7 +334,6 @@ fi
%dir %{python3_sitelib}/qubes/tests/tools/__pycache__
%{python3_sitelib}/qubes/tests/tools/__pycache__/*
%{python3_sitelib}/qubes/tests/tools/__init__.py
%{python3_sitelib}/qubes/tests/tools/qubesd.py

%dir %{python3_sitelib}/qubes/tests/integ
%dir %{python3_sitelib}/qubes/tests/integ/__pycache__
Expand Down

0 comments on commit c1f4c21

Please sign in to comment.