Skip to content

Commit

Permalink
enable doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Oct 26, 2023
1 parent ddd5f4d commit 2116955
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# (C) Copyright IBM 2023.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

import pytest

import ffsim


@pytest.fixture(autouse=True)
def add_ffsim(doctest_namespace):
doctest_namespace["ffsim"] = ffsim
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ wheel_build_env = .pkg
extras =
dev
commands =
pytest tests/ {posargs}
pytest --doctest-modules python/ tests/ {posargs}

[testenv:coverage]
description = check test coverage
Expand Down

0 comments on commit 2116955

Please sign in to comment.