Skip to content
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: 2 additions & 0 deletions validmind/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
run_test_suite,
)
from .tests.decorator import tags, tasks, test
from .tests.run import print_env
from .vm_models.result import RawData

__all__ = [ # noqa
Expand All @@ -63,6 +64,7 @@
"init_model",
"init_r_model",
"preview_template",
"print_env",
"RawData",
"reload",
"run_documentation_tests",
Expand Down
6 changes: 6 additions & 0 deletions validmind/tests/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import time
from datetime import datetime
from inspect import getdoc
import pprint
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from uuid import uuid4

Expand Down Expand Up @@ -396,3 +397,8 @@ def run_test( # noqa: C901
result.show()

return result


def print_env():
e = _get_run_metadata()
pprint.pp(e)
Loading