on xenial help sign in
Drop "8" from all the docstrings and copyright.
commit34e252bc00b8058c8d6094f8f38cb6c026675d9e authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 23 Jul 2013, 11:54 (13 years ago) parent2813ff6
14 files changed+41−41
tests/autopilot/setup.py+2−2 tests/autopilot/unity8/__init__.py+2−2 tests/autopilot/unity8/indicators_client/__init__.py+1−1 tests/autopilot/unity8/indicators_client/tests/__init__.py+1−1 tests/autopilot/unity8/shell/__init__.py+2−2 tests/autopilot/unity8/shell/emulators/__init__.py+3−3 tests/autopilot/unity8/shell/emulators/dash.py+3−3 tests/autopilot/unity8/shell/emulators/greeter.py+3−3 tests/autopilot/unity8/shell/emulators/hud.py+3−3 tests/autopilot/unity8/shell/emulators/launcher.py+3−3 tests/autopilot/unity8/shell/emulators/main_window.py+1−1 tests/autopilot/unity8/shell/tests/__init__.py+10−10 tests/autopilot/unity8/shell/tests/test_hud.py+4−4 tests/autopilot/unity8/shell/tests/test_lock_screen.py+3−3
tests/autopilot/setup.py+2−2
@@ -1,7 +1,7 @@
11#!/usr/bin/python
22# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
33#
4−# Unity8 Autopilot Test Suite
4+# Unity Autopilot Test Suite
55# Copyright (C) 2012-2013 Canonical
66#
77# This program is free software: you can redistribute it and/or modify
@@ -25,7 +25,7 @@ from setuptools import find_packages
2525setup(
2626 name='unity',
2727 version='8.0',
28− description='Unity 8 autopilot tests.',
28+ description='Unity autopilot tests.',
2929 url='https://launchpad.net/unity',
3030 license='GPLv3',
3131 packages=find_packages(),
tests/autopilot/unity8/__init__.py+2−2
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,7 +17,7 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−"""unity8 autopilot tests and emulators - top level package."""
20+"""unity autopilot tests and emulators - top level package."""
2121import os
2222import os.path
2323import subprocess
tests/autopilot/unity8/indicators_client/__init__.py+1−1
@@ -5,4 +5,4 @@
55# under the terms of the GNU General Public License version 3, as published
66# by the Free Software Foundation.
77
8−"""unity8 indicators-client autopilot tests and emulators - sub level package."""
8+"""unity indicators-client autopilot tests and emulators - sub level package."""
tests/autopilot/unity8/indicators_client/tests/__init__.py+1−1
@@ -5,7 +5,7 @@
55# under the terms of the GNU General Public License version 3, as published
66# by the Free Software Foundation.
77
8−"""qml-phone-shell autopilot tests."""
8+"""indicators-client autopilot tests."""
99
1010import os.path
1111
tests/autopilot/unity8/shell/__init__.py+2−2
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,7 +17,7 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−"""unity8 shell autopilot tests and emulators - sub level package."""
20+"""unity shell autopilot tests and emulators - sub level package."""
2121
2222from functools import wraps
2323import logging
tests/autopilot/unity8/shell/emulators/__init__.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -21,5 +21,5 @@
2121from autopilot.introspection import CustomEmulatorBase
2222
2323
24−class Unity8EmulatorBase(CustomEmulatorBase):
25− """A base class for all unity8 emulators."""
24+class UnityEmulatorBase(CustomEmulatorBase):
25+ """A base class for all unity emulators."""
tests/autopilot/unity8/shell/emulators/dash.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,10 +17,10 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−from unity8.shell.emulators import Unity8EmulatorBase
20+from unity8.shell.emulators import UnityEmulatorBase
2121
2222
23−class Dash(Unity8EmulatorBase):
23+class Dash(UnityEmulatorBase):
2424
2525 """An emulator that understands the Dash."""
2626
tests/autopilot/unity8/shell/emulators/greeter.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,11 +17,11 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−from unity8.shell.emulators import Unity8EmulatorBase
20+from unity8.shell.emulators import UnityEmulatorBase
2121from autopilot.input import Touch
2222
2323
24−class Greeter(Unity8EmulatorBase):
24+class Greeter(UnityEmulatorBase):
2525
2626 """An emulator that understands the greeter screen."""
2727
tests/autopilot/unity8/shell/emulators/hud.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -18,11 +18,11 @@
1818#
1919
2020from unity8 import get_grid_size
21−from unity8.shell.emulators import Unity8EmulatorBase
21+from unity8.shell.emulators import UnityEmulatorBase
2222from autopilot.input import Touch
2323
2424
25−class Hud(Unity8EmulatorBase):
25+class Hud(UnityEmulatorBase):
2626
2727 """An emulator that understands the Hud."""
2828
tests/autopilot/unity8/shell/emulators/launcher.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,11 +17,11 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−from unity8.shell.emulators import Unity8EmulatorBase
20+from unity8.shell.emulators import UnityEmulatorBase
2121from autopilot.input import Touch
2222
2323
24−class Launcher(Unity8EmulatorBase):
24+class Launcher(UnityEmulatorBase):
2525
2626 """An emulator that understands the Launcher."""
2727
tests/autopilot/unity8/shell/emulators/main_window.py+1−1
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
tests/autopilot/unity8/shell/tests/__init__.py+10−10
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -17,7 +17,7 @@
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20−"""unity8 autopilot tests."""
20+"""unity autopilot tests."""
2121
2222from autopilot.platform import model
2323from autopilot.testcase import AutopilotTestCase
@@ -29,7 +29,7 @@ import os.path
2929from testtools.matchers import Equals, NotEquals
3030
3131from unity8 import get_lib_path, get_binary_path, get_mocks_library_path
32−from unity8.shell.emulators import Unity8EmulatorBase
32+from unity8.shell.emulators import UnityEmulatorBase
3333from unity8.shell.emulators.dash import Dash
3434from unity8.shell.emulators.main_window import MainWindow
3535
@@ -58,12 +58,12 @@ def _get_device_emulation_scenarios():
5858 ]
5959
6060
61−class Unity8TestCase(AutopilotTestCase):
61+class UnityTestCase(AutopilotTestCase):
6262
63− """A test case base class for the Unity8 shell tests."""
63+ """A test case base class for the Unity shell tests."""
6464
6565 def setUp(self):
66− super(Unity8TestCase, self).setUp()
66+ super(UnityTestCase, self).setUp()
6767 self._proxy = None
6868 self.touch = Touch.create()
6969 self._setup_display_details()
@@ -123,7 +123,7 @@ class Unity8TestCase(AutopilotTestCase):
123123 return divisor
124124
125125 def launch_unity(self):
126− """Launch the unity8 shell, return a proxy object for it."""
126+ """Launch the unity shell, return a proxy object for it."""
127127 binary_path = get_binary_path()
128128 lib_path = get_lib_path()
129129
@@ -139,14 +139,14 @@ class Unity8TestCase(AutopilotTestCase):
139139 binary_path,
140140 *self.unity_geometry_args,
141141 app_type='qt',
142− emulator_base=Unity8EmulatorBase
142+ emulator_base=UnityEmulatorBase
143143 )
144144 self._set_proxy(app_proxy)
145145
146146 # Ensure that the dash is visible before we return:
147− logger.debug("Unity8 started, waiting for it to be ready.")
147+ logger.debug("Unity started, waiting for it to be ready.")
148148 self.assertUnityReady()
149− logger.debug("Unity8 loaded and ready.")
149+ logger.debug("Unity loaded and ready.")
150150
151151 return app_proxy
152152
tests/autopilot/unity8/shell/tests/test_hud.py+4−4
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -22,7 +22,7 @@ from __future__ import absolute_import
2222from collections import namedtuple
2323
2424from unity8.shell import with_lightdm_mock
25−from unity8.shell.tests import Unity8TestCase, _get_device_emulation_scenarios
25+from unity8.shell.tests import UnityTestCase, _get_device_emulation_scenarios
2626
2727from testtools.matchers import Equals
2828from autopilot.matchers import Eventually
@@ -31,7 +31,7 @@ from autopilot.matchers import Eventually
3131SwipeCoords = namedtuple('SwipeCoords', 'start_x end_x start_y end_y')
3232
3333
34−class TestHud(Unity8TestCase):
34+class TestHud(UnityTestCase):
3535
3636 """Tests the Shell HUD."""
3737
@@ -139,7 +139,7 @@ class TestHud(Unity8TestCase):
139139
140140 Because when testing on the desktop running
141141 self.launch_application() will launch the application on the desktop
142− itself and not within the Unity8 UI.
142+ itself and not within the Unity UI.
143143
144144 """
145145 dash = self.main_window.get_dash()
tests/autopilot/unity8/shell/tests/test_lock_screen.py+3−3
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity8 Autopilot Test Suite
3+# Unity Autopilot Test Suite
44# Copyright (C) 2012-2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -21,7 +21,7 @@
2121from __future__ import absolute_import
2222
2323from unity8.shell import with_lightdm_mock
24−from unity8.shell.tests import Unity8TestCase, _get_device_emulation_scenarios
24+from unity8.shell.tests import UnityTestCase, _get_device_emulation_scenarios
2525
2626from autopilot.matchers import Eventually
2727from autopilot.platform import model
@@ -29,7 +29,7 @@ from testtools import skipUnless
2929from testtools.matchers import Equals
3030
3131
32−class TestLockscreen(Unity8TestCase):
32+class TestLockscreen(UnityTestCase):
3333
3434 """Tests for the lock screen."""
3535