mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 10:34:34 +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:
1 parent
5bb76a3730
commit
e383d6e955
2 files changed
+9
-9
No files matched your search
@@ -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