Skip to content

Commit

Permalink
Move all code into banktoken package
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas17 committed Jun 16, 2018
1 parent e90de04 commit b29ab0c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion comafitoken.py → banktoken/comafitoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import requests

import jscrypto
from . import jscrypto

sess = requests.session()

Expand Down
File renamed without changes.
Empty file added banktoken/tests/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from unittest.mock import patch, MagicMock
import base64

import comafitoken
from .. import comafitoken

TEST_PAYLOAD = b'jNnbU15eXl5dMsxWZ5alkd9nFoWo1Eb1t0Izj4nh5PKVMGI0hOQLBQMv8k2t'
TEST_SEED = b'KGCQPVRVHCQgTLOeaSLGFTYQC'
Expand All @@ -19,7 +19,7 @@ def setUp(self):
content=b'callback(["%s"])' % TEST_PAYLOAD
)

@patch('comafitoken.sess.get')
@patch('banktoken.comafitoken.sess.get')
def test_fetch(self, mock_get):
'''Happy path fetching data'''
mock_get.return_value = self.mock_response
Expand All @@ -38,7 +38,7 @@ def test_decrypt(self):

self.assertEqual(seed, TEST_SEED)

@patch('comafitoken.sess.get')
@patch('banktoken.comafitoken.sess.get')
def test_all(self, mock_get):
'''Happy path end to end'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import base64
import binascii

import jscrypto
from .. import jscrypto

class TestJSCrypto(unittest.TestCase):
def test_key_derivation(self):
Expand Down

0 comments on commit b29ab0c

Please sign in to comment.