Skip to content

Commit

Permalink
Merge branch 'benchmark-import' of github.com:njzjz/dpdata into bench…
Browse files Browse the repository at this point in the history
…mark-import
  • Loading branch information
njzjz committed May 11, 2024
2 parents 35c8da8 + ce4bb17 commit 8194da0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions benchmark/test_import.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import pytest
import subprocess
import sys

import pytest


@pytest.mark.benchmark
def test_import():
"""Test import dpdata."""
subprocess.check_output([sys.executable, "-c", "'from dpdata import LabeledSystem'"]).decode("ascii")
subprocess.check_output(
[sys.executable, "-c", "'from dpdata import LabeledSystem'"]
).decode("ascii")


@pytest.mark.benchmark
def test_cli():
Expand Down

0 comments on commit 8194da0

Please sign in to comment.