~canonical-platform-qa/snappy-ecosystem-tests/fixing_ci

« back to all changes in this revision

Viewing changes to snappy_ecosystem_tests/helpers/fixture_setup.py

  • Committer: Heber Parrucci
  • Date: 2017-02-13 16:00:04 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: heber.parrucci@canonical.com-20170213160004-oe9fnfkd6foqllae
Changing runner for pytest to aviod the plugins issues in nose2 using testtools.
Making pylint more strict: fail with Warnings messages.
Refactoring global variables to use Singletons instead.
Updating README.rst with the new runner options

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
import fixtures
25
 
from snappy_ecosystem_tests.commons.config import get_config
 
25
from snappy_ecosystem_tests.commons.config import CONFIG_STACK
26
26
from snappy_ecosystem_tests.utils.storeconfig import get_current_store
27
27
 
28
28
 
57
57
 
58
58
    def setUp(self):
59
59
        super().setUp()
60
 
        urls = get_config().get_section('%s_urls' % self.store)
 
60
        urls = CONFIG_STACK.config.get_section('%s_urls' % self.store)
61
61
 
62
62
        self.useFixture(fixtures.EnvironmentVariable(
63
63
            'UBUNTU_STORE_API_ROOT_URL',