From d0441a8775473a942c0c6077b3a4e5ca35adeb2b Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Fri, 24 Feb 2017 10:08:41 +0800 Subject: Rename test case to avoid possible name conflict pytest does not allow two test file have same name despite they are in different folder. Change-Id: I568fe042f6dbe99df336d0ce4d6ed9c78305fe74 Signed-off-by: Yujun Zhang --- tests/unit/collector/base_test.py | 18 ------------------ tests/unit/collector/collector_test.py | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 tests/unit/collector/base_test.py create mode 100644 tests/unit/collector/collector_test.py (limited to 'tests/unit/collector') diff --git a/tests/unit/collector/base_test.py b/tests/unit/collector/base_test.py deleted file mode 100644 index 17fe1af1..00000000 --- a/tests/unit/collector/base_test.py +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################## -# Copyright (c) 2017 ZTE Corp and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - - -from qtip.loader.plan import load_collector -from qtip.collector import CollectorProp as CProp - - -def test_load_collector(collectors_config): - for c in collectors_config: - collector = load_collector(c[CProp.TYPE]) - assert collector.TYPE == c[CProp.TYPE] diff --git a/tests/unit/collector/collector_test.py b/tests/unit/collector/collector_test.py new file mode 100644 index 00000000..17fe1af1 --- /dev/null +++ b/tests/unit/collector/collector_test.py @@ -0,0 +1,18 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +from qtip.loader.plan import load_collector +from qtip.collector import CollectorProp as CProp + + +def test_load_collector(collectors_config): + for c in collectors_config: + collector = load_collector(c[CProp.TYPE]) + assert collector.TYPE == c[CProp.TYPE] -- cgit 1.2.3-korg