From 488b74a10bc724ce044edfb459836b63dfacd0b6 Mon Sep 17 00:00:00 2001 From: tiftran Date: Thu, 27 Feb 2020 13:17:00 -0800 Subject: [PATCH] formatting --- app/experimenter/bugzilla/client.py | 2 +- app/experimenter/experiments/forms.py | 4 ++-- app/experimenter/experiments/tasks.py | 1 - tests/integration/pages/experiment_overview.py | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/experimenter/bugzilla/client.py b/app/experimenter/bugzilla/client.py index 028354b8126..0795464a402 100644 --- a/app/experimenter/bugzilla/client.py +++ b/app/experimenter/bugzilla/client.py @@ -167,7 +167,7 @@ def format_summary(experiment): def create_experiment_bug(experiment): - assigned_to, see_also, blocks = None, None, None + assigned_to, blocks = None, None if user_exists(experiment.owner.email): assigned_to = experiment.owner.email diff --git a/app/experimenter/experiments/forms.py b/app/experimenter/experiments/forms.py index 51855f0f1e5..b70c86cd6e2 100644 --- a/app/experimenter/experiments/forms.py +++ b/app/experimenter/experiments/forms.py @@ -63,8 +63,8 @@ def clean(self, value): return cleaned_value def get_ds_issue_id(self, bug_url): - ds = re.match("https://jira.mozilla.com/browse/DS-(\w+.*)", bug_url) - do = re.match("https://jira.mozilla.com/browse/DO-(\w+.*)", bug_url) + ds = re.match(r"https://jira.mozilla.com/browse/DS-(\w+.*)", bug_url) + do = re.match(r"https://jira.mozilla.com/browse/DO-(\w+.*)", bug_url) if ds: return ds.group(1) diff --git a/app/experimenter/experiments/tasks.py b/app/experimenter/experiments/tasks.py index 0475d076589..3bc428a3186 100644 --- a/app/experimenter/experiments/tasks.py +++ b/app/experimenter/experiments/tasks.py @@ -1,7 +1,6 @@ import decimal import markus -import requests from django.contrib.auth import get_user_model from django.db import IntegrityError, transaction from django.conf import settings diff --git a/tests/integration/pages/experiment_overview.py b/tests/integration/pages/experiment_overview.py index efe55472dc1..43054d0f82a 100644 --- a/tests/integration/pages/experiment_overview.py +++ b/tests/integration/pages/experiment_overview.py @@ -36,10 +36,10 @@ class ExperimentOverview(Base): _page_wait_locator = (By.CSS_SELECTOR, "body.page-edit-overview") _name_locator = (By.CSS_SELECTOR, "#id_name") _short_description_locator = (By.CSS_SELECTOR, "#id_short_description") - _bugzilla_url_locator = ( + _bugzilla_url_locator = ( By.CSS_SELECTOR, "id_data_science_bugzilla_url", - ) + ) _overview_name_locator = (By.CSS_SELECTOR, "#id_name") _overview_description_locator = (By.CSS_SELECTOR, "#id_short_description") _overview_bugzilla_url_locator = (By.CSS_SELECTOR, "#id_data_science_bugzilla_url")