From f0ecce090026da3ede406289d139d1de08674134 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 30 Aug 2017 14:54:04 +0800 Subject: Keep tests/data consistent with repository structure - rename `benchmarks` in `tests/data` to `resources` - delete obsoleted contents JIRA: QTIP-258 Change-Id: I7f4ec1a1fc7b355922c7aee76851e7f0dd026f72 Signed-off-by: Yujun Zhang --- tests/unit/loader/qpi_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/unit/loader/qpi_test.py') diff --git a/tests/unit/loader/qpi_test.py b/tests/unit/loader/qpi_test.py index b53030d4..7fc8ce29 100644 --- a/tests/unit/loader/qpi_test.py +++ b/tests/unit/loader/qpi_test.py @@ -16,8 +16,8 @@ QPI_SPEC = 'compute.yaml' @pytest.fixture() -def qpi_spec(benchmarks_root): - return QPISpec('compute.yaml', paths=[benchmarks_root]) +def qpi_spec(resources_root): + return QPISpec('compute.yaml', paths=[resources_root]) def test_init(qpi_spec): @@ -29,8 +29,8 @@ def test_init(qpi_spec): in str(excinfo.value) -def test_list_all(benchmarks_root): - qpi_spec_list = list(QPISpec.list_all(paths=[benchmarks_root])) +def test_list_all(resources_root): + qpi_spec_list = list(QPISpec.list_all(paths=[resources_root])) assert len(qpi_spec_list) is 2 for item in qpi_spec_list: assert SpecProp.NAME in item -- cgit 1.2.3-korg