summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 13:16:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 13:16:28 -0400
commitd525db35d879d367264ce3093d508f6b3d9b5f89 (patch)
tree8da522d2d10bd77784a76ff3ee2f49e0b8f2c181 /test
parent07fcc3a08af552bd40d4bd5103d4668662acdaf4 (diff)
downloadfork-ledger-d525db35d879d367264ce3093d508f6b3d9b5f89.tar.gz
fork-ledger-d525db35d879d367264ce3093d508f6b3d9b5f89.tar.bz2
fork-ledger-d525db35d879d367264ce3093d508f6b3d9b5f89.zip
Restored the use of Python unit tests
Diffstat (limited to 'test')
-rw-r--r--test/unit/t_balance.cc4
-rw-r--r--test/unit/t_balance.h4
-rw-r--r--test/unit/t_commodity.cc13
-rw-r--r--test/unit/t_commodity.h6
-rw-r--r--test/unit/t_expr.cc4
-rw-r--r--test/unit/t_expr.h4
-rw-r--r--test/unit/t_times.cc5
-rw-r--r--test/unit/t_times.h4
-rw-r--r--test/unit/t_utils.cc8
-rw-r--r--test/unit/t_utils.h8
10 files changed, 10 insertions, 50 deletions
diff --git a/test/unit/t_balance.cc b/test/unit/t_balance.cc
index 93d97d6a..50694612 100644
--- a/test/unit/t_balance.cc
+++ b/test/unit/t_balance.cc
@@ -23,7 +23,3 @@ void BalanceTestCase::tearDown()
amount_t::stream_fullstrings = false;
amount_t::shutdown();
}
-
-void BalanceTestCase::testConstructors()
-{
-}
diff --git a/test/unit/t_balance.h b/test/unit/t_balance.h
index fea68b8a..8b8ce1b7 100644
--- a/test/unit/t_balance.h
+++ b/test/unit/t_balance.h
@@ -7,7 +7,7 @@ class BalanceTestCase : public CPPUNIT_NS::TestCase
{
CPPUNIT_TEST_SUITE(BalanceTestCase);
- CPPUNIT_TEST(testConstructors);
+ //CPPUNIT_TEST(testConstructors);
CPPUNIT_TEST_SUITE_END();
@@ -18,7 +18,7 @@ public:
virtual void setUp();
virtual void tearDown();
- void testConstructors();
+ //void testConstructors();
private:
BalanceTestCase(const BalanceTestCase &copy);
diff --git a/test/unit/t_commodity.cc b/test/unit/t_commodity.cc
index 9e38c823..ad5e91b4 100644
--- a/test/unit/t_commodity.cc
+++ b/test/unit/t_commodity.cc
@@ -99,16 +99,3 @@ void CommodityTestCase::testPriceHistory()
assertValid(x1);
}
-
-void CommodityTestCase::testLots()
-{
-}
-
-void CommodityTestCase::testScalingBase()
-{
-}
-
-void CommodityTestCase::testReduction()
-{
-}
-
diff --git a/test/unit/t_commodity.h b/test/unit/t_commodity.h
index 67903628..1dadb450 100644
--- a/test/unit/t_commodity.h
+++ b/test/unit/t_commodity.h
@@ -8,9 +8,6 @@ class CommodityTestCase : public CPPUNIT_NS::TestCase
CPPUNIT_TEST_SUITE(CommodityTestCase);
CPPUNIT_TEST(testPriceHistory);
- CPPUNIT_TEST(testLots);
- CPPUNIT_TEST(testScalingBase);
- CPPUNIT_TEST(testReduction);
CPPUNIT_TEST_SUITE_END();
@@ -22,9 +19,6 @@ public:
virtual void tearDown();
void testPriceHistory();
- void testLots();
- void testScalingBase();
- void testReduction();
private:
CommodityTestCase(const CommodityTestCase &copy);
diff --git a/test/unit/t_expr.cc b/test/unit/t_expr.cc
index 57aec44b..b0bad813 100644
--- a/test/unit/t_expr.cc
+++ b/test/unit/t_expr.cc
@@ -15,7 +15,3 @@ void ValueExprTestCase::tearDown()
{
amount_t::shutdown();
}
-
-void ValueExprTestCase::testConstructors()
-{
-}
diff --git a/test/unit/t_expr.h b/test/unit/t_expr.h
index 50813ea3..f1289143 100644
--- a/test/unit/t_expr.h
+++ b/test/unit/t_expr.h
@@ -7,7 +7,7 @@ class ValueExprTestCase : public CPPUNIT_NS::TestCase
{
CPPUNIT_TEST_SUITE(ValueExprTestCase);
- CPPUNIT_TEST(testConstructors);
+ //CPPUNIT_TEST(testConstructors);
CPPUNIT_TEST_SUITE_END();
@@ -18,7 +18,7 @@ public:
virtual void setUp();
virtual void tearDown();
- void testConstructors();
+ //void testConstructors();
private:
ValueExprTestCase(const ValueExprTestCase &copy);
diff --git a/test/unit/t_times.cc b/test/unit/t_times.cc
index 59acd98e..5b2e4d8f 100644
--- a/test/unit/t_times.cc
+++ b/test/unit/t_times.cc
@@ -6,11 +6,6 @@ using namespace ledger;
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "util");
-void DateTimeTestCase::setUp() {
-}
-void DateTimeTestCase::tearDown() {
-}
-
void DateTimeTestCase::testConstructors()
{
#ifndef NOT_FOR_PYTHON
diff --git a/test/unit/t_times.h b/test/unit/t_times.h
index 5bbadf21..28784113 100644
--- a/test/unit/t_times.h
+++ b/test/unit/t_times.h
@@ -15,8 +15,8 @@ public:
DateTimeTestCase() {}
virtual ~DateTimeTestCase() {}
- virtual void setUp();
- virtual void tearDown();
+ //virtual void setUp();
+ //virtual void tearDown();
void testConstructors();
diff --git a/test/unit/t_utils.cc b/test/unit/t_utils.cc
index 07be2815..c6861dd1 100644
--- a/test/unit/t_utils.cc
+++ b/test/unit/t_utils.cc
@@ -2,11 +2,3 @@
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(UtilitiesTestCase, "util");
-void UtilitiesTestCase::setUp() {
-}
-void UtilitiesTestCase::tearDown() {
-}
-
-void UtilitiesTestCase::testConstructors()
-{
-}
diff --git a/test/unit/t_utils.h b/test/unit/t_utils.h
index 97154bae..4520c580 100644
--- a/test/unit/t_utils.h
+++ b/test/unit/t_utils.h
@@ -7,7 +7,7 @@ class UtilitiesTestCase : public CPPUNIT_NS::TestCase
{
CPPUNIT_TEST_SUITE(UtilitiesTestCase);
- CPPUNIT_TEST(testConstructors);
+ //CPPUNIT_TEST(testConstructors);
CPPUNIT_TEST_SUITE_END();
@@ -15,10 +15,10 @@ public:
UtilitiesTestCase() {}
virtual ~UtilitiesTestCase() {}
- virtual void setUp();
- virtual void tearDown();
+ //virtual void setUp();
+ //virtual void tearDown();
- void testConstructors();
+ //void testConstructors();
private:
UtilitiesTestCase(const UtilitiesTestCase &copy);