File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1- from .scanspec import spec_scan
1+ from .spec_path import spec_scan
22from .wrapped import count
33
44__all__ = ["count" , "spec_scan" ]
File renamed without changes.
Original file line number Diff line number Diff line change 1+ import os
12import subprocess
23import sys
34
45import pytest
56
7+ import dodal .plans .save_panda as save_panda
68from dodal import __version__
79
810
@@ -29,3 +31,18 @@ def test_save_panda_error_if_no_beamline_set():
2931 res = subprocess .getstatusoutput (cmd_str )
3032 assert res [0 ] == expected_exit_code
3133 assert res [1 ] == "BEAMLINE not set and --beamline not specified"
34+
35+
36+ def test_can_run_save_panda_outside_entry_point ():
37+ path = os .path .abspath (save_panda .__file__ )
38+ result = subprocess .run (
39+ [
40+ sys .executable ,
41+ os .path .basename (path ),
42+ "--help" ,
43+ ],
44+ cwd = os .path .dirname (path ),
45+ capture_output = True ,
46+ text = True ,
47+ )
48+ assert result .returncode == 0 , result .stdout
You can’t perform that action at this time.
0 commit comments