Added Python 2.7.x and 3.4.x compatibility to the code. Disabled HTTPS security warning in urllib3 package of 'requests' package.

This commit is contained in:
Michael Halls-Moore
2015-05-11 17:30:28 +01:00
parent 8e74edb4f7
commit a03bc7a1fb
9 changed files with 67 additions and 39 deletions
+1 -5
View File
@@ -1,4 +1,4 @@
from decimal import Decimal, getcontext
from decimal import Decimal
import unittest
from position import Position
@@ -28,7 +28,6 @@ class TestLongGBPUSDPosition(unittest.TestCase):
denominated currency of GBP, using 2,000 units of GBP/USD.
"""
def setUp(self):
getcontext.prec = 2
home_currency = "GBP"
position_type = "long"
currency_pair = "GBPUSD"
@@ -78,7 +77,6 @@ class TestShortGBPUSDPosition(unittest.TestCase):
denominated currency of GBP, using 2,000 units of GBP/USD.
"""
def setUp(self):
getcontext.prec = 2
home_currency = "GBP"
position_type = "short"
currency_pair = "GBPUSD"
@@ -132,7 +130,6 @@ class TestLongEURUSDPosition(unittest.TestCase):
denominated currency of GBP, using 2,000 units of EUR/USD.
"""
def setUp(self):
getcontext.prec = 2
home_currency = "GBP"
position_type = "long"
currency_pair = "EURUSD"
@@ -183,7 +180,6 @@ class TestLongEURUSDPosition(unittest.TestCase):
denominated currency of GBP, using 2,000 units of EUR/USD.
"""
def setUp(self):
getcontext.prec = 2
home_currency = "GBP"
position_type = "short"
currency_pair = "EURUSD"