-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #933 from uktrade/release/3.4.0
Release 3.4.0
- Loading branch information
Showing
107 changed files
with
3,292 additions
and
2,677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
web: python manage.py collectstatic --noinput && python manage.py distributed_migrate --noinput && gunicorn config.wsgi --config config/gunicorn.py | ||
web: python manage.py collectstatic --noinput && python manage.py distributed_migrate --noinput && python manage.py init_es && gunicorn config.wsgi --config config/gunicorn.py | ||
init_rev: python manage.py createinitialrevisions | ||
celeryworker: celery worker -A config -l info | ||
celeryworker: celery worker -A config -l info -O fair --prefetch-multiplier 1 -Q celery,long-running | ||
celerybeat: celery beat -A config -l info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ class CompanyFactory(factory.django.DjangoModelFactory): | |
created_by = factory.SubFactory(AdviserFactory) | ||
modified_by = factory.SubFactory(AdviserFactory) | ||
name = factory.Faker('company') | ||
alias = factory.Faker('company') | ||
registered_address_1 = factory.Sequence(lambda n: f'{n} Foo st.') | ||
registered_address_town = 'London' | ||
registered_address_country_id = constants.Country.united_kingdom.value.id | ||
|
@@ -87,6 +88,7 @@ class ContactFactory(factory.django.DjangoModelFactory): | |
last_name = factory.Faker('last_name') | ||
company = factory.SubFactory(CompanyFactory) | ||
email = '[email protected]' | ||
job_title = factory.Faker('job') | ||
primary = True | ||
telephone_countrycode = '+44' | ||
telephone_number = '123456789' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ def test_with_manual_address(self): | |
}, | ||
'first_name': 'Oratio', | ||
'last_name': 'Nelson', | ||
'job_title': constants.Role.owner.value.name, | ||
'job_title': 'Head of Sales', | ||
'company': { | ||
'id': str(company.pk) | ||
}, | ||
|
@@ -72,7 +72,7 @@ def test_with_manual_address(self): | |
'first_name': 'Oratio', | ||
'last_name': 'Nelson', | ||
'name': 'Oratio Nelson', | ||
'job_title': constants.Role.owner.value.name, | ||
'job_title': 'Head of Sales', | ||
'company': { | ||
'id': str(company.pk), | ||
'name': company.name | ||
|
@@ -306,7 +306,7 @@ def test_patch(self): | |
title_id=constants.Title.admiral_of_the_fleet.value.id, | ||
first_name='Oratio', | ||
last_name='Nelson', | ||
job_title=constants.Role.owner.value.name, | ||
job_title='Head of Sales', | ||
company=company, | ||
email='[email protected]', | ||
email_alternative='[email protected]', | ||
|
@@ -347,7 +347,7 @@ def test_patch(self): | |
'first_name': 'New Oratio', | ||
'last_name': 'Nelson', | ||
'name': 'New Oratio Nelson', | ||
'job_title': constants.Role.owner.value.name, | ||
'job_title': 'Head of Sales', | ||
'company': { | ||
'id': str(company.pk), | ||
'name': company.name | ||
|
@@ -481,7 +481,7 @@ def test_view(self): | |
title_id=constants.Title.admiral_of_the_fleet.value.id, | ||
first_name='Oratio', | ||
last_name='Nelson', | ||
job_title=constants.Role.owner.value.name, | ||
job_title='Head of Sales', | ||
company=company, | ||
email='[email protected]', | ||
email_alternative='[email protected]', | ||
|
@@ -518,7 +518,7 @@ def test_view(self): | |
'first_name': 'Oratio', | ||
'last_name': 'Nelson', | ||
'name': 'Oratio Nelson', | ||
'job_title': constants.Role.owner.value.name, | ||
'job_title': 'Head of Sales', | ||
'company': { | ||
'id': str(company.pk), | ||
'name': company.name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.