Fix quicktest and update azure config

This commit is contained in:
Garret Wassermann 2021-10-18 23:05:03 -04:00
parent 266694509f
commit 914e751a6d
2 changed files with 9 additions and 8 deletions

View File

@ -5,6 +5,11 @@
trigger:
- master
- 0.3
pr:
- master
- 0.3
pool:
vmImage: ubuntu-latest
@ -54,17 +59,12 @@ steps:
- script: |
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
displayName: 'Install prerequisites'
- script: |
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'
- task: PublishTestResults@2
inputs:
testResultsFiles: "**/TEST-*.xml"
testRunTitle: 'Python $(PYTHON_VERSION)'
condition: succeededOrFailed()

View File

@ -100,6 +100,7 @@ class QuickDjangoTest(object):
LOGIN_URL='/helpdesk/login/',
TEMPLATES=self.TEMPLATES,
SITE_ID=1,
SECRET_KEY='wowdonotusethisfakesecuritykeyyouneedarealsecure1',
## The following settings disable teams
HELPDESK_TEAMS_MODEL = 'auth.User',
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES = [],