mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Update unit tests to match new docker paths (#3360)
* Update unit tests to match new docker paths Ref: https://github.com/inventree/InvenTree/pull/3357 * Add "wait" step before running dev server
This commit is contained in:
14
tasks.py
14
tasks.py
@ -406,7 +406,13 @@ def import_fixtures(c):
|
||||
|
||||
|
||||
# Execution tasks
|
||||
@task(help={'address': 'Server address:port (default=127.0.0.1:8000)'})
|
||||
@task
|
||||
def wait(c):
|
||||
"""Wait until the database connection is ready."""
|
||||
return manage(c, "wait_for_db")
|
||||
|
||||
|
||||
@task(pre=[wait], help={'address': 'Server address:port (default=127.0.0.1:8000)'})
|
||||
def server(c, address="127.0.0.1:8000"):
|
||||
"""Launch a (deveopment) server using Django's in-built webserver.
|
||||
|
||||
@ -415,12 +421,6 @@ def server(c, address="127.0.0.1:8000"):
|
||||
manage(c, "runserver {address}".format(address=address), pty=True)
|
||||
|
||||
|
||||
@task
|
||||
def wait(c):
|
||||
"""Wait until the database connection is ready."""
|
||||
return manage(c, "wait_for_db")
|
||||
|
||||
|
||||
@task(pre=[wait])
|
||||
def worker(c):
|
||||
"""Run the InvenTree background worker process."""
|
||||
|
Reference in New Issue
Block a user