X Tutup
Skip to content

Commit b709da0

Browse files
committed
Removed unused setUp methods from object tests.
1 parent b3aafa1 commit b709da0

File tree

11 files changed

+0
-57
lines changed

11 files changed

+0
-57
lines changed

tests/unit/objects/test_account.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class AccountTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
account = Account()
129
account.FullyQualifiedName = "test"

tests/unit/objects/test_bill.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class AccountBasedExpenseLineDetailTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
acct_detail = AccountBasedExpenseLineDetail()
129
acct_detail.BillableStatus = "test"
@@ -15,9 +12,6 @@ def test_unicode(self):
1512

1613

1714
class BillTests(unittest.TestCase):
18-
def setUp(self):
19-
pass
20-
2115
def test_unicode(self):
2216
bill = Bill()
2317
bill.Balance = 1000
@@ -26,9 +20,6 @@ def test_unicode(self):
2620

2721

2822
class BillLineTests(unittest.TestCase):
29-
def setUp(self):
30-
pass
31-
3223
def test_unicode(self):
3324
bill_line = BillLine()
3425
bill_line.Amount = 1000

tests/unit/objects/test_billpayment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ def test_unicode(self):
2020

2121

2222
class BillPaymentTests(unittest.TestCase):
23-
def setUp(self):
24-
pass
25-
2623
def test_unicode(self):
2724
bill_payment = BillPayment()
2825
bill_payment.TotalAmt = 1000

tests/unit/objects/test_budget.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class BudgetDetailTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
budget_detail = BudgetDetail()
129
budget_detail.Amount = 10
@@ -15,9 +12,6 @@ def test_unicode(self):
1512

1613

1714
class BudgetTests(unittest.TestCase):
18-
def setUp(self):
19-
pass
20-
2115
def test_unicode(self):
2216
budget = Budget()
2317
budget.Name = "test"

tests/unit/objects/test_creditmemo.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class SalesItemLineDetailTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
detail = SalesItemLineDetail()
129
detail.UnitPrice = 10
@@ -15,9 +12,6 @@ def test_unicode(self):
1512

1613

1714
class CreditMemoLineTests(unittest.TestCase):
18-
def setUp(self):
19-
pass
20-
2115
def test_unicode(self):
2216
memo_line = CreditMemoLine()
2317
memo_line.LineNum = 1
@@ -28,9 +22,6 @@ def test_unicode(self):
2822

2923

3024
class CreditMemoTests(unittest.TestCase):
31-
def setUp(self):
32-
pass
33-
3425
def test_unicode(self):
3526
credit_memo = CreditMemo()
3627
credit_memo.TotalAmt = 1000

tests/unit/objects/test_customer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class CustomerTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
customer = Customer()
129
customer.DisplayName = "test"

tests/unit/objects/test_department.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class DepartmentTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
department = Department()
129
department.FullyQualifiedName = "test"

tests/unit/objects/test_deposit.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class DepositTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
deposit = Deposit()
129
deposit.TotalAmt = 100
@@ -15,9 +12,6 @@ def test_unicode(self):
1512

1613

1714
class DepositLineTests(unittest.TestCase):
18-
def setUp(self):
19-
pass
20-
2115
def test_unicode(self):
2216
deposit = DepositLine()
2317
deposit.Amount = 100

tests/unit/objects/test_employee.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class EmployeeTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
employee = Employee()
129
employee.DisplayName = "test"

tests/unit/objects/test_item.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55

66
class ItemTests(unittest.TestCase):
7-
def setUp(self):
8-
pass
9-
107
def test_unicode(self):
118
item = Item()
129
item.Name = "test"

0 commit comments

Comments
 (0)
X Tutup