Skip to content

Commit

Permalink
fix ImportError
Browse files Browse the repository at this point in the history
Fixes deepmodeling#1000. Add tests.
  • Loading branch information
njzjz authored Oct 17, 2022
1 parent 4419d45 commit 7d0ed31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from dpgen.database.run import db_run
from dpgen.tools.run_report import run_report
from dpgen.tools.auto_gen_param import auto_gen_param
from dpgen import info, __version__, __date__
from dpgen import info, __version__



Expand Down
9 changes: 9 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys
import subprocess as sp


class TestCLI(unittest.TestCase):
def test_cli(self):
sp.check_output([sys.executable, "-m", "dpgen", "-h"])
for subcommand in ('run', 'simplify', 'init_surf', 'init_bulk', 'init_reaction', 'autotest'):
sp.check_output([sys.executable, "-m", "dpgen", subcommand, "-h"])

0 comments on commit 7d0ed31

Please sign in to comment.