Skip to content

Commit

Permalink
renamed utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Feb 1, 2019
1 parent c8686ed commit 15d42c8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/utils/__init__.py → tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import os
import json
from pprint import pprint
from sdclientapi import json_query
import os
from unittest.mock import MagicMock, patch

from typing import Optional, Dict, List, Tuple
from sdclientapi import json_query

# We are making calls to securedrop.Proxy qrexec service
# in the QubesOS to get the data from the server. This is difficult to test
Expand Down Expand Up @@ -40,7 +38,7 @@ def internal_sideeffect(*args, **kwargs):
python_args["body"] = json.dumps(value, sort_keys=True)
newargs = json.dumps(python_args, sort_keys=True)
arguments = (newargs,)
except:
except Exception:
pass # Means no body in the call

# Now remove the authorization token from the key
Expand All @@ -52,7 +50,7 @@ def internal_sideeffect(*args, **kwargs):
python_args["headers"] = json.dumps(value, sort_keys=True)
newargs = json.dumps(python_args, sort_keys=True)
arguments = (newargs,)
except Exception as err:
except Exception:
pass # Means no Authorization token in the call

key = arguments[0] + "+" + str(CALLNUMBER)
Expand Down

0 comments on commit 15d42c8

Please sign in to comment.