2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-07 04:12:11 +00:00

remove CUI

This commit is contained in:
Matthias Mair
2024-10-28 19:56:59 +01:00
parent 234ee2b40f
commit a92c8da492
2358 changed files with 94228 additions and 708261 deletions

View File

@@ -341,8 +341,6 @@ def remove_mfa(c, mail=''):
@task(help={'frontend': 'Build the frontend', 'clear': 'Remove existing static files'})
def static(c, frontend=False, clear=True):
"""Copies required static files to the STATIC_ROOT directory, as per Django requirements."""
manage(c, 'prerender')
if frontend and node_available():
frontend_trans(c)
frontend_build(c)
@@ -940,17 +938,10 @@ def test_translations(c):
'migrations': 'Run migration unit tests',
'report': 'Display a report of slow tests',
'coverage': 'Run code coverage analysis (requires coverage package)',
'cui': 'Do not run CUI tests',
}
)
def test(
c,
disable_pty=False,
runtest='',
migrations=False,
report=False,
coverage=False,
cui=False,
c, disable_pty=False, runtest='', migrations=False, report=False, coverage=False
):
"""Run unit-tests for InvenTree codebase.
@@ -986,9 +977,6 @@ def test(
else:
cmd += ' --exclude-tag migration_test'
if cui:
cmd += ' --exclude-tag=cui'
if coverage:
# Run tests within coverage environment, and generate report
c.run(f'coverage run {managePyPath()} {cmd}')