r16372 - gnucash/branches/dogtail/src/test-dogtail - start Accounts Receivable scenario

Ahmed Sayed asayed at cvs.gnucash.org
Sun Jul 29 17:13:18 EDT 2007


Author: asayed
Date: 2007-07-29 17:13:17 -0400 (Sun, 29 Jul 2007)
New Revision: 16372
Trac: http://svn.gnucash.org/trac/changeset/16372

Modified:
   gnucash/branches/dogtail/src/test-dogtail/runtest.py
Log:
start Accounts Receivable scenario 


Modified: gnucash/branches/dogtail/src/test-dogtail/runtest.py
===================================================================
--- gnucash/branches/dogtail/src/test-dogtail/runtest.py	2007-07-29 21:12:26 UTC (rev 16371)
+++ gnucash/branches/dogtail/src/test-dogtail/runtest.py	2007-07-29 21:13:17 UTC (rev 16372)
@@ -250,7 +250,7 @@
 
     def setUp(self):
         """ a setup  for the test case in this type of test just run gnucash and go dismiss first dialog """
-        #cleanup_all()
+        cleanup_all()
         run('gnucash')
         sleep (20)
         gnuCash = GnuCashApp()
@@ -259,14 +259,13 @@
     def tearDown(self):
         """ just close gnucash without Saving """
         gnuCash = GnuCashApp()
-        gnuCash.close_without_saving()
+#        gnuCash.close_without_saving()
 
     def test_new_account_dialog(self):
         """ Test creating new Account currently I could able only to test an account with only 2 levels 
             No validation here 
             TODO: add validation
         """
-        config.childrenLimit=500 
         gnucash = GnuCashApp()
         gnucash.add_new_account_page()
         account_list = [
@@ -329,6 +328,7 @@
         validate_node(account_tab, 'test_perform_transaction')
 
     def test_perform_reconcilation(self):
+        """ Test Reconcilation """
         gnucash = GnuCashApp()
         gnucash.open_data_file('mytest2')
         reconcile = gnucash.reconcile_account('Asset')
@@ -349,5 +349,20 @@
         validate_node(reconcileFrame.funds_in, 'test_after_perform_reconcilation_funds_in')
         validate_node(reconcileFrame.funds_out, 'test_after_perform_reconcilation_funds_out')
 
+    def test_accounts_receivable(self):
+        """ Test accounts receivable """
+        gnucash = GnuCashApp()
+        gnucash.add_new_account_page()
+        account_list = [
+                ['Asset', 'Asset'],
+                ['Income', 'Income'],
+                ['Checking', 'Bank', 'Asset'],
+                ['Accounts Receivable', 'A/Receivable', 'Asset'],
+                ['Sales', 'Income', 'Income'],
+            ]
+        for account in account_list:
+            gnucash.add_account(*account)
+
+
 if __name__ == "__main__":
     unittest.main()



More information about the gnucash-changes mailing list