mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Eliminate compatibility names from tests
No need to run the same tests on the same backends
This commit is contained in:
@@ -41,7 +41,11 @@ INPUT_PIN = int(os.getenv('GPIOZERO_TEST_INPUT_PIN', '27'))
|
|||||||
|
|
||||||
@pytest.fixture(
|
@pytest.fixture(
|
||||||
scope='module',
|
scope='module',
|
||||||
params=pkg_resources.get_distribution('gpiozero').get_entry_map('gpiozero_pin_factories').keys())
|
params=[
|
||||||
|
name
|
||||||
|
for name in pkg_resources.get_distribution('gpiozero').get_entry_map('gpiozero_pin_factories').keys()
|
||||||
|
if not name.endswith('Pin') # leave out compatibility names
|
||||||
|
])
|
||||||
def pin_factory(request):
|
def pin_factory(request):
|
||||||
try:
|
try:
|
||||||
factory = pkg_resources.load_entry_point('gpiozero', 'gpiozero_pin_factories', request.param)()
|
factory = pkg_resources.load_entry_point('gpiozero', 'gpiozero_pin_factories', request.param)()
|
||||||
|
|||||||
Reference in New Issue
Block a user