-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add no-workspace with/without plugins tests
- Loading branch information
Corey
committed
Jul 4, 2023
1 parent
a9200fb
commit 62cabad
Showing
10 changed files
with
131 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import origen | ||
header = "--Origen Eval--" | ||
print(header) | ||
print(list(origen.plugins.keys())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import origen | ||
header = "--Origen Eval--" | ||
print(header) | ||
print(origen.status) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from .t_invocation_env import T_InvocationEnv, no_workspace_test_dir, PyProjectSrc, site_packages_dir | ||
|
||
class TestNoWorkspaceNoPlugins(T_InvocationEnv): | ||
user_install_dir = no_workspace_test_dir.joinpath("user_install") | ||
|
||
@classmethod | ||
def set_params(cls): | ||
cls.target_pyproj_dir = None | ||
cls.invocation = PyProjectSrc.NoneFound | ||
cls.cli_dir = site_packages_dir.joinpath("origen/__bin__/bin") | ||
cls.has_pls = False | ||
|
||
@classmethod | ||
def setup_method(cls): | ||
cls.file_based_evals = True | ||
super().setup_method() | ||
|
||
class TestNoWorkspaceWithPlugins(TestNoWorkspaceNoPlugins): | ||
@classmethod | ||
def set_params(cls): | ||
super().set_params() | ||
cls.has_pls = True | ||
|
||
def test_exts_in_user_global_context(self): | ||
out = self.global_cmds.eval.run("1==1", "-b", "-a") | ||
assert "Hi from python-plugin during 'eval'!" in out | ||
assert "Hi again from python-plugin during 'eval'!" in out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters