Added the ability to specify a regex filter for the part-name on the synthesis tests. Implemented as --synth-part. Closes #179 (#180)

This commit is contained in:
Benjamin Davis
2025-11-13 21:09:03 -07:00
committed by GitHub
parent 543bf2be9a
commit 3d5f9d8efb
5 changed files with 36 additions and 7 deletions

View File

@@ -1,17 +1,28 @@
from typing import TYPE_CHECKING, List
import pytest
if TYPE_CHECKING:
from ..synth_testcase import SynthTestCase
class Synthesizer:
name = ""
#: this gets auto-loaded via the _load_request autouse fixture
request = None # type: pytest.FixtureRequest
@pytest.fixture(autouse=True)
def _load_request(self, request):
self.request = request
@classmethod
def is_installed(cls) -> bool:
raise NotImplementedError
def __init__(self, testcase: 'SynthTestCase' = None) -> None:
def __init__(self, testcase: 'SynthTestCase' = None,
request: 'pytest.FixtureRequest' = None) -> None:
self.testcase = testcase
self.request = request
def run(self) -> None:
raise NotImplementedError