Skip to content

Commit

Permalink
fix test failing and apply copyright
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Cheung <nathan.cheung.451@outlook.com>
  • Loading branch information
nca45 committed Jul 2, 2024
1 parent 471b065 commit 99c6109
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def commands():
"move_meeting_to_noon": {
"command": "[[ -z ${SKIP_LUNCH} ]] && exit 1 || exit 0"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def hello():
return "This shirt was $150 out the door and the pattern's not that complicated"
return "This shirt was $150 out the door and the pattern's not that complicated"
4 changes: 3 additions & 1 deletion src/rez/tests/test_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project


"""
test rez package.py unit tests
"""
Expand All @@ -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)

Expand All @@ -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)
return next((result for result in runner.test_results.test_results if result.get("test_name") == test_name), None)

0 comments on commit 99c6109

Please sign in to comment.