From 95d35a166fc66944fb0fc6091f4b84568aef0e7d Mon Sep 17 00:00:00 2001 From: spisarski Date: Wed, 7 Jun 2017 14:56:00 -0600 Subject: Removed current working directory logic retrieving test file resources. Some of the SNAPS tests leverage file resources contained within the project. These resources were being accessed via relative paths which required the test clients to ensure that the CWD was the /snaps directory. Replaced that logic to leverage the import pkg_resources making the tests much more flexible and robust. JIRA: SNAPS-89 Change-Id: Ic9c429ee53e4dd785641e11e1ed4de5aeeab54d1 Signed-off-by: spisarski --- examples/__init__.py | 15 +++++++++++++++ examples/heat/__init__.py | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 examples/__init__.py create mode 100644 examples/heat/__init__.py (limited to 'examples') diff --git a/examples/__init__.py b/examples/__init__.py new file mode 100644 index 0000000..271c742 --- /dev/null +++ b/examples/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs") +# and others. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +__author__ = 'spisarski' diff --git a/examples/heat/__init__.py b/examples/heat/__init__.py new file mode 100644 index 0000000..271c742 --- /dev/null +++ b/examples/heat/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs") +# and others. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +__author__ = 'spisarski' -- cgit 1.2.3-korg