diff --git a/mddatasetbuilder/__main__.py b/mddatasetbuilder/__main__.py new file mode 100644 index 0000000..115f534 --- /dev/null +++ b/mddatasetbuilder/__main__.py @@ -0,0 +1,6 @@ +"""Module entry point.""" + +from .datasetbuilder import _commandline + +if __name__ == "__main__": + _commandline() diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..e36d3c0 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,9 @@ +"""Test command line interface.""" + +import subprocess as sp +import sys + + +def test_module(): + """Test python -m mddatasetbuilder.""" + sp.check_output([sys.executable, "-m", "mddatasetbuilder", "-h"])