Skip to content

Commit

Permalink
[refactor] Parametrize to make tests DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Feb 27, 2024
1 parent c6fe611 commit 0375c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import shutil
from pathlib import Path

import pytest
from bs4 import BeautifulSoup


@pytest.mark.parametrize("testroot", ["method-assignment", "dynamic-class"])
def test_should_open_new_tab(
make_app, sphinx_test_tempdir: Path, rootdir: str
make_app, sphinx_test_tempdir: Path, rootdir: str, testroot: str
):
testroot = "dynamic-class"
srcdir = sphinx_test_tempdir / testroot
if not srcdir.exists():
testroot_path = rootdir / f"test-{testroot}"
Expand Down
26 changes: 0 additions & 26 deletions tests/test_method_assignment.py

This file was deleted.

0 comments on commit 0375c73

Please sign in to comment.