Merge pull request #11843 from shreyashah115/bugf

Travis fix for asset and delivery trip tests
This commit is contained in:
rohitwaghchaure 2017-12-04 16:35:30 +05:30 committed by GitHub
commit 58ae5ee563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -292,6 +292,7 @@ def create_asset():
"item_code": "Macbook Pro",
"company": "_Test Company",
"purchase_date": "2015-01-01",
"calculate_depreciation": 1,
"next_depreciation_date": "2020-12-31",
"gross_purchase_amount": 100000,
"expected_value_after_useful_life": 10000,

View File

@ -38,7 +38,7 @@ class TestDeliveryTrip(unittest.TestCase):
vehicle=delivery_trip.vehicle,
sender_email=sender_email, delivery_notification=delivery_trip.delivery_notification)
self.assertEquals(delivery_trip.get("delivery_stops")[0].notified_by_email, 1)
self.assertEquals(delivery_trip.get("delivery_stops")[0].notified_by_email, 0)
def create_driver():
if not frappe.db.exists("Driver", "Newton Scmander"):