Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing python package to ResolvedContext object in rez 'context' and 'test' tests #2

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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