You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
547 B
19 lines
547 B
""" Helper utilities. """
|
|
|
|
import os
|
|
|
|
from asl_rulebook2.tests import pytest_options
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
def for_each_easlrb_version( func ):
|
|
"""Run tests for each version of the eASLRB."""
|
|
assert pytest_options.easlrb_path
|
|
base_dir = pytest_options.easlrb_path
|
|
ncalls = 0
|
|
for dname, _, _ in os.walk( base_dir ):
|
|
fname = os.path.join( dname, "eASLRB.pdf" )
|
|
if os.path.isfile( fname ):
|
|
func( dname )
|
|
ncalls += 1
|
|
assert ncalls > 0
|
|
|