Skip to content

Commit

Permalink
Add profiling tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Dec 13, 2024
1 parent 6b196fe commit 20beeb4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from pathlib import Path
import pytest
import sys

sys.path.append(str(Path(__file__).parent.parent / "profile"))
from run_profile import __main__ # noqa: E402


@pytest.mark.parametrize("method", ["sample", "variational"])
@pytest.mark.parametrize("parameterization", [
"graph_centered", "graph_non_centered", "fourier_centered", "fourier_non_centered",
"standard_centered", "standard_non_centered"
])
def test_run_profile(method, parameterization) -> None:
__main__([method, parameterization, "1", "--n=16", "--ignore_converged"])

0 comments on commit 20beeb4

Please sign in to comment.