forked from ej2/python-quickbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ej2#337 from ej2/test-improvements
Test Improvements
- Loading branch information
Showing
5 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
import unittest | ||
|
||
from quickbooks import QuickBooks | ||
from quickbooks.objects.recurringtransaction import RecurringTransaction | ||
from quickbooks.objects.recurringtransaction import RecurringTransaction, ScheduleInfo, RecurringInfo | ||
|
||
|
||
class RecurringTransactionTests(unittest.TestCase): | ||
def test_valid_object_name(self): | ||
obj = RecurringTransaction() | ||
client = QuickBooks() | ||
result = client.isvalid_object_name(obj.qbo_object_name) | ||
|
||
self.assertTrue(result) | ||
self.assertTrue(result) | ||
|
||
|
||
class ScheduleInfoTest(unittest.TestCase): | ||
def test_create(self): | ||
obj = ScheduleInfo() | ||
obj.DayOfMonth = "1" | ||
|
||
self.assertEqual(obj.DayOfMonth, "1") | ||
|
||
|
||
class RecurringInfoTest(unittest.TestCase): | ||
def test_create(self): | ||
obj = RecurringInfo() | ||
|
||
self.assertEqual(obj.RecurType, "Automated") | ||
|