fix tests
diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py
index 66ad215..b63c2e1 100644
--- a/erpnext/selling/doctype/quotation/quotation.py
+++ b/erpnext/selling/doctype/quotation/quotation.py
@@ -187,7 +187,7 @@
def set_expired_status():
frappe.db.sql("""UPDATE `tabQuotation` SET status = 'Expired'
- WHERE status != 'Expired' AND 'valid_till' < %s""", (nowdate()))
+ WHERE 'valid_till' < %s""", (nowdate()))
frappe.db.commit()
@frappe.whitelist()