Skip to content

Commit

Permalink
Add missing python package to ResolvedContext object in rez 'context'…
Browse files Browse the repository at this point in the history
… and 'test' tests (#2)

* add missing python package to test_context.py

Signed-off-by: Nathan Cheung <nathan.cheung.451@outlook.com>

* add missing python pacakge to test_test.py

Signed-off-by: Nathan Cheung <nathan.cheung.451@outlook.com>

---------

Signed-off-by: Nathan Cheung <nathan.cheung.451@outlook.com>
  • Loading branch information
nca45 authored Jul 3, 2024
1 parent 9765bd3 commit 1320509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rez/tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_execute_command_testing_environ(self):
"""Test that execute_command properly sets test specific environ dict"""
self.inject_python_repo()
packages_path = self.data_path("builds", "packages")
r = ResolvedContext(["testing_obj"], testing=True, package_paths=[packages_path])
r = ResolvedContext(["testing_obj", "python"], testing=True, package_paths=[packages_path])
self._test_execute_command_test_environ(r)

def _test_execute_command_test_environ(self, r):
Expand Down
2 changes: 1 addition & 1 deletion src/rez/tests/test_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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"])
context = ResolvedContext(["testing_obj", "python"])
self._run_tests(context)

def _run_tests(self, r):
Expand Down

0 comments on commit 1320509

Please sign in to comment.