diff options
Diffstat (limited to 'tests/test_portfolio.py')
-rw-r--r-- | tests/test_portfolio.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_portfolio.py b/tests/test_portfolio.py index 14dc995..4d78996 100644 --- a/tests/test_portfolio.py +++ b/tests/test_portfolio.py | |||
@@ -2,6 +2,7 @@ from .helper import * | |||
2 | import portfolio | 2 | import portfolio |
3 | import datetime | 3 | import datetime |
4 | 4 | ||
5 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
5 | class ComputationTest(WebMockTestCase): | 6 | class ComputationTest(WebMockTestCase): |
6 | def test_compute_value(self): | 7 | def test_compute_value(self): |
7 | compute = mock.Mock() | 8 | compute = mock.Mock() |
@@ -25,6 +26,7 @@ class ComputationTest(WebMockTestCase): | |||
25 | portfolio.Computation.compute_value("foo", "bid", compute_value="test") | 26 | portfolio.Computation.compute_value("foo", "bid", compute_value="test") |
26 | compute.assert_called_with("foo", "bid") | 27 | compute.assert_called_with("foo", "bid") |
27 | 28 | ||
29 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
28 | class TradeTest(WebMockTestCase): | 30 | class TradeTest(WebMockTestCase): |
29 | 31 | ||
30 | def test_values_assertion(self): | 32 | def test_values_assertion(self): |
@@ -609,6 +611,7 @@ class TradeTest(WebMockTestCase): | |||
609 | self.assertEqual("ETH", as_json["currency"]) | 611 | self.assertEqual("ETH", as_json["currency"]) |
610 | self.assertEqual("BTC", as_json["base_currency"]) | 612 | self.assertEqual("BTC", as_json["base_currency"]) |
611 | 613 | ||
614 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
612 | class BalanceTest(WebMockTestCase): | 615 | class BalanceTest(WebMockTestCase): |
613 | def test_values(self): | 616 | def test_values(self): |
614 | balance = portfolio.Balance("BTC", { | 617 | balance = portfolio.Balance("BTC", { |
@@ -684,6 +687,7 @@ class BalanceTest(WebMockTestCase): | |||
684 | self.assertEqual(D(0), as_json["margin_available"]) | 687 | self.assertEqual(D(0), as_json["margin_available"]) |
685 | self.assertEqual(D(0), as_json["margin_borrowed"]) | 688 | self.assertEqual(D(0), as_json["margin_borrowed"]) |
686 | 689 | ||
690 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
687 | class OrderTest(WebMockTestCase): | 691 | class OrderTest(WebMockTestCase): |
688 | def test_values(self): | 692 | def test_values(self): |
689 | order = portfolio.Order("buy", portfolio.Amount("ETH", 10), | 693 | order = portfolio.Order("buy", portfolio.Amount("ETH", 10), |
@@ -1745,6 +1749,7 @@ class OrderTest(WebMockTestCase): | |||
1745 | result = order.retrieve_order() | 1749 | result = order.retrieve_order() |
1746 | self.assertFalse(result) | 1750 | self.assertFalse(result) |
1747 | 1751 | ||
1752 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
1748 | class MouvementTest(WebMockTestCase): | 1753 | class MouvementTest(WebMockTestCase): |
1749 | def test_values(self): | 1754 | def test_values(self): |
1750 | mouvement = portfolio.Mouvement("ETH", "BTC", { | 1755 | mouvement = portfolio.Mouvement("ETH", "BTC", { |
@@ -1802,6 +1807,7 @@ class MouvementTest(WebMockTestCase): | |||
1802 | self.assertEqual("BTC", as_json["base_currency"]) | 1807 | self.assertEqual("BTC", as_json["base_currency"]) |
1803 | self.assertEqual("ETH", as_json["currency"]) | 1808 | self.assertEqual("ETH", as_json["currency"]) |
1804 | 1809 | ||
1810 | @unittest.skipUnless("unit" in limits, "Unit skipped") | ||
1805 | class AmountTest(WebMockTestCase): | 1811 | class AmountTest(WebMockTestCase): |
1806 | def test_values(self): | 1812 | def test_values(self): |
1807 | amount = portfolio.Amount("BTC", "0.65") | 1813 | amount = portfolio.Amount("BTC", "0.65") |