diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2017-03-29 19:52:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 19:52:38 +0200 |
| commit | 49615acb1db1358e3fb7082f482dc62f7e41c692 (patch) | |
| tree | a8caccc2307423d9a8ce6e28c566a9e588d78f95 /budget/tests.py | |
| parent | bf2c11f8a9f14b2553892df92b4d6e44fc21d2a2 (diff) | |
| parent | 4799fcb34f1319615666fb0663bbb6cb12e8a4d1 (diff) | |
| download | ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.zip ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.tar.gz ihatemoney-mirror-49615acb1db1358e3fb7082f482dc62f7e41c692.tar.bz2 | |
Merge pull request #192 from JocelynDelalande/jd-remove-warnings
Warnings hunt !
Diffstat (limited to 'budget/tests.py')
| -rw-r--r-- | budget/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/budget/tests.py b/budget/tests.py index 50c01ae..854c07b 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -5,7 +5,6 @@ try: except ImportError: import unittest # NOQA -import base64 import os import json from collections import defaultdict @@ -17,6 +16,7 @@ from flask import session import run import models +import utils class TestCase(unittest.TestCase): @@ -759,7 +759,7 @@ class APITestCase(TestCase): def get_auth(self, username, password=None): password = password or username - base64string = base64.encodestring( + base64string = utils.base64_encode( ('%s:%s' % (username, password)).encode('utf-8')).decode('utf-8').replace('\n', '') return {"Authorization": "Basic %s" % base64string} |
