misc: apply double-quote-string-fixer (#79788)
This commit is contained in:
parent
59deefd4e6
commit
6eda381331
6
setup.py
6
setup.py
|
@ -41,7 +41,7 @@ class build(_build):
|
||||||
|
|
||||||
class eo_sdist(sdist):
|
class eo_sdist(sdist):
|
||||||
def run(self):
|
def run(self):
|
||||||
print("creating VERSION file")
|
print('creating VERSION file')
|
||||||
if os.path.exists('VERSION'):
|
if os.path.exists('VERSION'):
|
||||||
os.remove('VERSION')
|
os.remove('VERSION')
|
||||||
version = get_version()
|
version = get_version()
|
||||||
|
@ -49,7 +49,7 @@ class eo_sdist(sdist):
|
||||||
version_file.write(version)
|
version_file.write(version)
|
||||||
version_file.close()
|
version_file.close()
|
||||||
sdist.run(self)
|
sdist.run(self)
|
||||||
print("removing VERSION file")
|
print('removing VERSION file')
|
||||||
if os.path.exists('VERSION'):
|
if os.path.exists('VERSION'):
|
||||||
os.remove('VERSION')
|
os.remove('VERSION')
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ setup(
|
||||||
license='AGPLv3',
|
license='AGPLv3',
|
||||||
description='Authentic2 CUT plugin',
|
description='Authentic2 CUT plugin',
|
||||||
author="Entr'ouvert",
|
author="Entr'ouvert",
|
||||||
author_email="info@entrouvert.com",
|
author_email='info@entrouvert.com',
|
||||||
packages=find_packages('src'),
|
packages=find_packages('src'),
|
||||||
package_dir={
|
package_dir={
|
||||||
'': 'src',
|
'': 'src',
|
||||||
|
|
|
@ -280,7 +280,7 @@ class AppConfig(django.apps.AppConfig):
|
||||||
verbose_name=_('Email'),
|
verbose_name=_('Email'),
|
||||||
args=[A('pk')],
|
args=[A('pk')],
|
||||||
accessor='email',
|
accessor='email',
|
||||||
attrs={"td": {"class": "link"}},
|
attrs={'td': {'class': 'link'}},
|
||||||
)
|
)
|
||||||
table.base_columns = base_columns
|
table.base_columns = base_columns
|
||||||
table.sequence = sequence
|
table.sequence = sequence
|
||||||
|
|
|
@ -95,35 +95,35 @@ A2_FC_USER_INFO_MAPPINGS = {
|
||||||
A2_FC_SCOPES = ['openid', 'identite_pivot', 'email']
|
A2_FC_SCOPES = ['openid', 'identite_pivot', 'email']
|
||||||
|
|
||||||
TEMPLATE_VARS = {
|
TEMPLATE_VARS = {
|
||||||
"help_url": 'https://support.grandlyon.com/glc/',
|
'help_url': 'https://support.grandlyon.com/glc/',
|
||||||
"account_label": "compte GRANDLYON CONNECT",
|
'account_label': 'compte GRANDLYON CONNECT',
|
||||||
"partners_url": "https://www.grandlyon.com/projets/metropole-intelligente.html",
|
'partners_url': 'https://www.grandlyon.com/projets/metropole-intelligente.html',
|
||||||
"support_url": "https://support.grandlyon.com/glc/#generalites",
|
'support_url': 'https://support.grandlyon.com/glc/#generalites',
|
||||||
}
|
}
|
||||||
if PLATFORM == 'dev':
|
if PLATFORM == 'dev':
|
||||||
TEMPLATE_VARS.update(
|
TEMPLATE_VARS.update(
|
||||||
{
|
{
|
||||||
"environment_label": "Site de développement",
|
'environment_label': 'Site de développement',
|
||||||
"moncompte_url": 'https://connexion-grandlyon.dev.entrouvert.org',
|
'moncompte_url': 'https://connexion-grandlyon.dev.entrouvert.org',
|
||||||
"help_url": "https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/",
|
'help_url': 'https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
elif PLATFORM == 'test':
|
elif PLATFORM == 'test':
|
||||||
TEMPLATE_VARS.update(
|
TEMPLATE_VARS.update(
|
||||||
{
|
{
|
||||||
"environment_label": "Site de test",
|
'environment_label': 'Site de test',
|
||||||
"smarttag_js": "https://tag.aticdn.net/586793/smarttag.js",
|
'smarttag_js': 'https://tag.aticdn.net/586793/smarttag.js',
|
||||||
"visits_tracking_js": "var tag = new ATInternet.Tracker.Tag();",
|
'visits_tracking_js': 'var tag = new ATInternet.Tracker.Tag();',
|
||||||
"moncompte_url": 'https://moncompte-rec.grandlyon.com',
|
'moncompte_url': 'https://moncompte-rec.grandlyon.com',
|
||||||
"help_url": "https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/",
|
'help_url': 'https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
elif PLATFORM == 'prod':
|
elif PLATFORM == 'prod':
|
||||||
TEMPLATE_VARS.update(
|
TEMPLATE_VARS.update(
|
||||||
{
|
{
|
||||||
"smarttag_js": "https://tag.aticdn.net/586794/smarttag.js",
|
'smarttag_js': 'https://tag.aticdn.net/586794/smarttag.js',
|
||||||
"visits_tracking_js": "var tag = new ATInternet.Tracker.Tag();",
|
'visits_tracking_js': 'var tag = new ATInternet.Tracker.Tag();',
|
||||||
"moncompte_url": 'https://moncompte.grandlyon.com',
|
'moncompte_url': 'https://moncompte.grandlyon.com',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,8 @@ def test_a2_hook_idp_oidc_modify_user_info(db, rf, app):
|
||||||
assert value is None
|
assert value is None
|
||||||
|
|
||||||
profile_type = ProfileType.objects.create(
|
profile_type = ProfileType.objects.create(
|
||||||
name="Mandataire",
|
name='Mandataire',
|
||||||
slug="mandataire",
|
slug='mandataire',
|
||||||
)
|
)
|
||||||
profile = Profile.objects.create(
|
profile = Profile.objects.create(
|
||||||
profile_type=profile_type,
|
profile_type=profile_type,
|
||||||
|
|
Loading…
Reference in New Issue