-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do a benchmark before working on #522 Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
import subprocess | ||
import sys | ||
|
||
@pytest.mark.benchmark | ||
def test_import(): | ||
"""Test import dpdata.""" | ||
subprocess.check_output([sys.executable, "-c", "'from dpdata import LabeledSystem'"]).decode("ascii") | ||
|
||
@pytest.mark.benchmark | ||
def test_cli(): | ||
"""Test dpdata command.""" | ||
subprocess.check_output([sys.executable, "-m", "dpdata", "-h"]).decode("ascii") |