mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
25 lines
486 B
Python
25 lines
486 B
Python
"""
|
|
Run pytest against local test creation
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
try:
|
|
from django_ynh.pytest_helper import run_pytest
|
|
except ImportError as err:
|
|
raise ImportError('Did you forget to activate a virtual environment?') from err
|
|
|
|
|
|
BASE_PATH = Path(__file__).parent
|
|
|
|
|
|
def main():
|
|
run_pytest(
|
|
django_settings_path=BASE_PATH / 'conf' / 'django_ynh_demo_settings.py',
|
|
destination=BASE_PATH / 'local_test',
|
|
)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|