Skip to content

Commit 4919fa5

Browse files
committed
Adding tests.
1 parent 8ce27b3 commit 4919fa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ basic-example = "benchmarkme.examples.basic:bmrk_math"
1313

1414
[tool.pytest.ini_options]
1515
python_files = ["*.py"]
16-
testpaths = ["tests/examples", "src"]
16+
testpaths = ["tests", "src"]
1717
addopts = "--doctest-modules"
1818
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
1919

tests/examples/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Make sure the example runs without error."""
22
from subprocess import check_call
33

4-
def runok_test():
4+
def test_runok():
55
assert not check_call(['bash', '-c', 'basic-example'])

0 commit comments

Comments
 (0)