Skip to content

Commit

Permalink
red: Update the files formatted with black
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Chowdhury <[email protected]>
  • Loading branch information
sayanchowdhury committed May 2, 2020
1 parent e1ae524 commit 8a988d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion junction/devices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class Device(TimeAuditModel):
)

def __unicode__(self):
return u"uuid: {}, is_verified: {}".format(self.uuid, self.is_verified)
return "uuid: {}, is_verified: {}".format(self.uuid, self.is_verified)
6 changes: 2 additions & 4 deletions junction/schedule/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ScheduleItem(AuditModel):
conference = models.ForeignKey(Conference, on_delete=models.CASCADE)

def __unicode__(self):
return u"{} - {} on {} from {} to {} in {}".format(
return "{} - {} on {} from {} to {} in {}".format(
self.conference,
self.name,
self.event_date,
Expand Down Expand Up @@ -90,9 +90,7 @@ def to_response(self, request):
}
if self.session:
session = self.session
author = u"{} {}".format(
session.author.first_name, session.author.last_name
)
author = "{} {}".format(session.author.first_name, session.author.last_name)
data["session"] = {
"id": session.id,
"title": session.title,
Expand Down
2 changes: 1 addition & 1 deletion junction/tickets/management/commands/explara.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Explara(object):

def __init__(self, access_token):
self.access_token = access_token
self.headers = {"Authorization": u"Bearer " + self.access_token}
self.headers = {"Authorization": "Bearer " + self.access_token}
self.base_url = "https://www.explara.com/api/e/{0}"

def get_events(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/integrations/test_feedback_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def test_feedback_with_wrong_choice_value(self):
self.client.credentials(HTTP_AUTHORIZATION="Token " + str(self.device.uuid))
res = self.client.post("/api/v1/feedback/", data, format="json")

msg = u"The multiple choice value isn't associated with question"
msg = "The multiple choice value isn't associated with question"

assert res.status_code == status.HTTP_400_BAD_REQUEST
assert res.data == {"choices": [{u"non_field_errors": [msg]}]}
assert res.data == {"choices": [{"non_field_errors": [msg]}]}

def test_feedback_with_missing_required_text_data(self):
choice = [
Expand Down

0 comments on commit 8a988d9

Please sign in to comment.