1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 03:42:35 +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:
Sergei Trofimov
2019-12-03 12:44:25 +00:00
committed by Marc Bonnici
parent da0ceab027
commit cc1cc6f77f
5 changed files with 27 additions and 22 deletions

View File

@@ -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