mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Add a pid file to avoid running honcho multiple times
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import atexit
|
||||
|
||||
import pytest
|
||||
|
||||
from .composer import start_composer, stop_composer
|
||||
@ -15,7 +17,4 @@ def pytest_load_initial_conftests(early_config, parser, args):
|
||||
"""Hook that loads the composer before the pytest-django plugin"""
|
||||
if PROCFILE_PYTEST is not None:
|
||||
start_composer(PROCFILE_PYTEST)
|
||||
|
||||
|
||||
def pytest_unconfigure(config):
|
||||
stop_composer()
|
||||
_ = atexit.register(stop_composer)
|
||||
|
Reference in New Issue
Block a user