diff --git a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/build.py b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/build.py index e4e5a0146..21e8b9337 100644 --- a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/build.py +++ b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/build.py @@ -21,4 +21,4 @@ def build(source_path, build_path, install_path, targets): build_path=os.environ['REZ_BUILD_PATH'], install_path=os.environ['REZ_BUILD_INSTALL_PATH'], targets=sys.argv[1:] - ) \ No newline at end of file + ) diff --git a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/package.py b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/package.py index ddf2d62ac..709cf0349 100644 --- a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/package.py +++ b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/package.py @@ -28,4 +28,4 @@ def commands(): "move_meeting_to_noon": { "command": "[[ -z ${SKIP_LUNCH} ]] && exit 1 || exit 0" } -} \ No newline at end of file +} diff --git a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/testing_obj/__init__.py b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/testing_obj/__init__.py index aa21138d2..fcab6ab00 100644 --- a/src/rez/data/tests/builds/packages/testing_obj/1.0.0/testing_obj/__init__.py +++ b/src/rez/data/tests/builds/packages/testing_obj/1.0.0/testing_obj/__init__.py @@ -1,2 +1,2 @@ def hello(): - return "This shirt was $150 out the door and the pattern's not that complicated" \ No newline at end of file + return "This shirt was $150 out the door and the pattern's not that complicated" diff --git a/src/rez/tests/test_test.py b/src/rez/tests/test_test.py index b82d92735..f150357bd 100644 --- a/src/rez/tests/test_test.py +++ b/src/rez/tests/test_test.py @@ -1,6 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the Rez Project + """ test rez package.py unit tests """ @@ -27,6 +28,7 @@ def tearDownClass(cls): def test_1(self): """package.py unit tests are correctly run in a testing environment""" + self.inject_python_repo() context = ResolvedContext(["testing_obj"]) self._run_tests(context) @@ -52,4 +54,4 @@ def _run_tests(self, r): self.assertEqual(failed_test["status"], "failed") def _get_test_result(self, runner, test_name): - return next((result for result in runner.test_results.test_results if result.get("test_name") == test_name), None) \ No newline at end of file + return next((result for result in runner.test_results.test_results if result.get("test_name") == test_name), None)