mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
tests: fix pytest warnings
Fix warnings reported when running unit tests via pytest. - Rename TestDevice to MockDevice, so that it is not interpreted as a test case. - Fix collections abstract base class imports. - Add an ini file to ignore the same from "past".
This commit is contained in:
committed by
Marc Bonnici
parent
da0ceab027
commit
cc1cc6f77f
@@ -59,7 +59,8 @@ to specify it explicitly.
|
||||
import os
|
||||
import re
|
||||
import json as _json
|
||||
from collections import OrderedDict, Hashable
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Hashable
|
||||
from datetime import datetime
|
||||
import dateutil.parser
|
||||
import yaml as _yaml # pylint: disable=wrong-import-order
|
||||
|
@@ -38,7 +38,8 @@ if sys.version_info[0] == 3:
|
||||
else:
|
||||
from urllib import quote, unquote # pylint: disable=no-name-in-module
|
||||
# pylint: disable=wrong-import-position
|
||||
from collections import defaultdict, MutableMapping
|
||||
from collections import defaultdict
|
||||
from collections.abc import MutableMapping
|
||||
from functools import total_ordering
|
||||
|
||||
from future.utils import with_metaclass
|
||||
|
Reference in New Issue
Block a user