mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
Remove CUI (#8384)
* remove CUI
* fix loading
* fix login middleware
* remove css template functions
* tmp fix for recurtion
* remove old test
* fix assertations
* fix middleware tests
* re-add plugin tags
* remove thirdpartjs
* re-add mfa urls
* remove old js
* remove cui tags
* simplify error testing
* use license endpoint for testing instead
* disable successful test
* revert de-activation
* remove references to old UI customisation
* update docs to remove reference to removed page
* disable availabilty check
* possible fix to importing problem
* Revert "possible fix to importing problem"
This reverts commit ee9fccdc8c
.
* remove old get_context_data
* fix migration
* remove unused function
* remove unused stuff
* remove unused template
* fix formatting of readme
This commit is contained in:
14
tasks.py
14
tasks.py
@ -395,8 +395,6 @@ def remove_mfa(c, mail=''):
|
||||
)
|
||||
def static(c, frontend=False, clear=True, skip_plugins=False):
|
||||
"""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)
|
||||
@ -1001,17 +999,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.
|
||||
|
||||
@ -1047,9 +1038,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
|
||||
run(c, f'coverage run {managePyPath()} {cmd}')
|
||||
|
Reference in New Issue
Block a user