Skip to content

Commit

Permalink
Add examples test to collected tests (when not run with pytest).
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 732211424
  • Loading branch information
Nush395 authored and Torax team committed Feb 28, 2025
1 parent 0554b3c commit c620238
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions torax/examples/tests/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import importlib
import os

from absl.testing import absltest
from absl.testing import parameterized
from torax.config import build_sim
from torax.tests.test_lib import paths
Expand All @@ -41,3 +42,7 @@ def test_build_sim_from_config(self, config_name_no_py: str):
python_config_module, PYTHON_CONFIG_PACKAGE
)
_ = build_sim.build_sim_from_config(config_module.CONFIG)


if __name__ == '__main__':
absltest.main()

0 comments on commit c620238

Please sign in to comment.