File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515from absl .testing import absltest
16- from torax .docs .scripts import combined_transport_example
16+ import pathlib
17+ from torax ._src .config import config_loader
18+
19+ _SCRIPT_DIR = pathlib .Path (__file__ ).parent .parent
20+ _COMBINED_TRANSPORT_EXAMPLE_SCRIPT_PATH = (
21+ _SCRIPT_DIR / "combined_transport_example.py"
22+ )
23+
24+ _combined_transport_example_module = config_loader .import_module (
25+ _COMBINED_TRANSPORT_EXAMPLE_SCRIPT_PATH
26+ )
1727
1828
1929class CombinedTransportExampleTest (absltest .TestCase ):
2030
2131 def test_combined_transport_example_runs_without_errors (self ):
22- combined_transport_example . main ([])
32+ _combined_transport_example_module [ " main" ] ([])
2333
2434
25- if __name__ == ' __main__' :
35+ if __name__ == " __main__" :
2636 absltest .main ()
You can’t perform that action at this time.
0 commit comments