File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ We use [pytest](https://docs.pytest.org) to run our tests and
280280[pytest-cov](https://pytest-cov.readthedocs.io) to compute coverage.
281281
282282* While developing, periodically check that changes do not break anything. For fast checks, use
283- `pytest -c dev_tools/conf/pytest.ini PATH`, where `PATH` is a directory or pytest file to test.
283+ `pytest -m "not slow" PATH`, where `PATH` is a directory or pytest file to test.
284284
285285* After finishing a task, run `check/pytest` to test all of the OpenFermion code.
286286
Original file line number Diff line number Diff line change @@ -43,11 +43,10 @@ for arg in "$@"; do
4343done
4444
4545if [ -z " ${ACTUALLY_QUIET} " ]; then
46- pytest -c dev_tools/conf/pytest.ini - -rootdir=" $rootdir " " ${PYTEST_ARGS[@]} "
46+ pytest --rootdir=" $rootdir " " ${PYTEST_ARGS[@]} "
4747else
4848 # Filter out lines like "...F....x... [ 42%]", with coloring.
49- pytest -c dev_tools/conf/pytest.ini \
50- --rootdir=" $rootdir " -q --color=yes " ${PYTEST_ARGS[@]} " | \
49+ pytest --rootdir=" $rootdir " -q --color=yes " ${PYTEST_ARGS[@]} " | \
5150 grep -Ev ' ^(\x1B\[0m)?[\.FEsx]+(\x1B\[36m)?[[:space:]]+\[[[:space:]]*[0-9]+%\](\x1B\[0m)?$'
5251 exit " ${PIPESTATUS[0]} "
5352fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,17 +23,16 @@ skip-magic-trailing-comma = true
2323core = " sysmon"
2424disable_warnings = [" no-sysmon" ]
2525
26- # Omit files outside the current working directory.
27- # Note: this means coverage must be run from the openfermion repo root.
28- # Failure to do so will result in false positives.
29- omit = [
30- " ./profiling/performance_benchmarks.py " ,
31- " ./dev_tools/* " ,
26+ [ tool . pytest . ini_options ]
27+ markers = [
28+ """ slow: marks tests as slow (deselect with '-m "not slow"') """ ,
29+ ]
30+ filterwarnings = [
31+ " ignore:Skipped assert_qasm_is_consistent_with_unitary because qiskit.*:UserWarning " ,
3232]
3333
3434[tool .mypy ]
3535implicit_optional = true
36-
3736# TODO: this is temporary for 1.7.0 release. Remove this & fix the errors.
3837ignore_errors = true
3938
You can’t perform that action at this time.
0 commit comments