mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-11-07 16:54:10 +01:00
Fix quicktest and update azure config
This commit is contained in:
parent
266694509f
commit
914e751a6d
@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
- 0.3
|
||||||
|
|
||||||
|
pr:
|
||||||
|
- master
|
||||||
|
- 0.3
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
@ -54,17 +59,12 @@ steps:
|
|||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
pip install -c constraint-Django$(DJANGO_VERSION).txt -r requirements.txt
|
pip install -c constraints-Django$(DJANGO_VERSION).txt -r requirements.txt
|
||||||
pip install unittest-xml-reporting
|
pip install unittest-xml-reporting
|
||||||
displayName: 'Install prerequisites'
|
displayName: 'Install prerequisites'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
pushd '$(projectRoot)'
|
pushd '$(projectRoot)'
|
||||||
python manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input
|
#python manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input
|
||||||
|
python quicktest.py helpdesk
|
||||||
displayName: 'Run tests'
|
displayName: 'Run tests'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
|
||||||
inputs:
|
|
||||||
testResultsFiles: "**/TEST-*.xml"
|
|
||||||
testRunTitle: 'Python $(PYTHON_VERSION)'
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
|
@ -100,6 +100,7 @@ class QuickDjangoTest(object):
|
|||||||
LOGIN_URL='/helpdesk/login/',
|
LOGIN_URL='/helpdesk/login/',
|
||||||
TEMPLATES=self.TEMPLATES,
|
TEMPLATES=self.TEMPLATES,
|
||||||
SITE_ID=1,
|
SITE_ID=1,
|
||||||
|
SECRET_KEY='wowdonotusethisfakesecuritykeyyouneedarealsecure1',
|
||||||
## The following settings disable teams
|
## The following settings disable teams
|
||||||
HELPDESK_TEAMS_MODEL = 'auth.User',
|
HELPDESK_TEAMS_MODEL = 'auth.User',
|
||||||
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES = [],
|
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES = [],
|
||||||
|
Loading…
Reference in New Issue
Block a user