mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
17 lines
235 B
Python
17 lines
235 B
Python
|
|
"""
|
||
|
|
Requires pytest installed under blender
|
||
|
|
|
||
|
|
Usage: `blender -b -P runpytest.py -- ARGS`
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
argv = [__file__]
|
||
|
|
|
||
|
|
if '--' in sys.argv:
|
||
|
|
i = sys.argv.index('--')
|
||
|
|
argv += sys.argv[i+1:]
|
||
|
|
|
||
|
|
pytest.main(argv)
|