|
@@ -7,17 +7,17 @@ import sys
|
|
|
|
|
|
here = osp.abspath(osp.dirname(__file__))
|
|
|
|
|
|
-paths = [i for i in glob.glob(f'{here}/*') if osp.isdir(i)]
|
|
|
+paths = [i for i in glob.glob('%s/*' % here) if osp.isdir(i)]
|
|
|
|
|
|
services_dir = osp.abspath(osp.join(here, '../packages/services/examples'))
|
|
|
-paths += [i for i in glob.glob(f'{services_dir}/*')]
|
|
|
+paths += [i for i in glob.glob('%s/*' % services_dir)]
|
|
|
|
|
|
|
|
|
def header(path):
|
|
|
test_name = osp.basename(path)
|
|
|
print('\n')
|
|
|
print('*' * 40)
|
|
|
- print(f'Starting {test_name} test')
|
|
|
+ print('Starting %s test' % test_name)
|
|
|
print('*' * 40)
|
|
|
|
|
|
|
|
@@ -38,4 +38,4 @@ for path in sorted(paths):
|
|
|
runner = osp.join(here, 'example_check.py')
|
|
|
subprocess.check_call([sys.executable, runner, path])
|
|
|
|
|
|
-print(f'\n\n{count} tests complete!')
|
|
|
+print('\n\n%s tests complete!' % count)
|