diff options
author | 2017-06-07 14:56:00 -0600 | |
---|---|---|
committer | 2017-06-07 14:56:00 -0600 | |
commit | 95d35a166fc66944fb0fc6091f4b84568aef0e7d (patch) | |
tree | 5ad804fe917c7c7a2bcf99ad285159ea0f29d015 /examples/heat | |
parent | c8212122569c2dbf6290b43a0fbde0171c2ffdc5 (diff) |
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 <repo>/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 <s.pisarski@cablelabs.com>
Diffstat (limited to 'examples/heat')
-rw-r--r-- | examples/heat/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
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' |