~canonical-platform-qa/ubuntu-system-tests/trunk

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/tests/scopes/test_default_scopes.py

  • Committer: Tarmac
  • Author(s): Sergio Cazzolato
  • Date: 2016-02-10 14:20:31 UTC
  • mfrom: (277.4.26 base_test_refactor)
  • Revision ID: tarmac-20160210142031-j2py2zg1d6yi4tdg
Refactoring base test class and autopilot helpers. The idea is to reduce the tests/base and autopilot.py files length.

First step is implemented. For that different methods were move mainly to autopilot helper and this helper was split in different files.

The second part which is pushed and within it all the methods to launch and close apps are moved to the helpers.

Approved by PS Jenkins bot, Richard Huddie.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import shutil
22
22
 
23
23
from testtools import skipUnless
24
 
from ubuntu_system_tests.helpers import autopilot
 
24
 
 
25
from ubuntu_system_tests.helpers.autopilot.platform import (
 
26
    get_device_name, get_channel_name
 
27
)
25
28
from ubuntu_system_tests.helpers import file_system as fs
26
29
from ubuntu_system_tests.helpers import scopes
27
30
from ubuntu_system_tests.helpers.location import (
59
62
    def setUp(self):
60
63
        super().setUp()
61
64
        logger.info('Running test using channel: {c} and device: {d}'.format(
62
 
            c=autopilot.get_channel_name(), d=autopilot.get_device_name()))
 
65
            c=get_channel_name(), d=get_device_name()))
63
66
 
64
67
 
65
68
class ScopeHeadingTest(DefaultScopeTest):