~brendan-donegan/maas/qa-lab-tests_ipmi_config_silent_fail

« back to all changes in this revision

Viewing changes to maas-integration.py

  • Committer: MAAS Lander
  • Author(s): Brendan Donegan
  • Date: 2016-11-09 14:16:18 UTC
  • mfrom: (459.2.6 flake8_cleanup)
  • Revision ID: maas_lander-20161109141618-c3qthypbq8qc835c
[r=allenap][bug=][author=brendan-donegan] Fix a whole bunch of flake8 and pylint issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from unittest import TestLoader
2
2
 
3
 
from common import TestMAASIntegration
 
3
from common import TestMAASIntegration  # noqa
 
4
 
4
5
 
5
6
def get_tests_order():
6
7
    suite = open('integration-suite')
7
8
    tests = [line.strip() for line in suite.readlines()]
 
9
    return tests
8
10
 
9
11
tests_order = get_tests_order()
10
12
 
11
13
 
12
14
def sorting_method(ignored, first_test, second_test):
13
15
    return tests_order.index(first_test) - tests_order.index(second_test)
 
16
 
 
17
 
 
18
TestLoader.sortTestMethodsUsing = sorting_method