Browse Source

fix(Codacy): Deleted unused imports and files

develop
deepeshgarg007 6 years ago
parent
commit
8c4bd951a8
  1. 8
      .eslintrc
  2. 8
      cypress/plugins/index.js
  3. 4
      cypress/support/index.js
  4. 2
      erpnext/crm/doctype/lost_reason_detail/lost_reason_detail.js
  5. 1
      erpnext/crm/doctype/lost_reason_detail/lost_reason_detail.py
  6. 14
      erpnext/crm/doctype/lost_reason_detail/test_lost_reason_detail.py
  7. 2
      erpnext/crm/doctype/opportunity_lost_reason/opportunity_lost_reason.js
  8. 1
      erpnext/crm/doctype/opportunity_lost_reason/opportunity_lost_reason.py
  9. 10
      erpnext/crm/doctype/opportunity_lost_reason/test_opportunity_lost_reason.py

8
.eslintrc

@ -137,6 +137,12 @@
"get_server_fields": true,
"set_multiple": true,
"QUnit": true,
"Chart": true
"Chart": true,
"Cypress": true,
"cy": true,
"it": true,
"context": true,
"before": true,
"beforeEach": true
}
}

8
cypress/plugins/index.js

@ -11,7 +11,7 @@
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
// module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// }

4
cypress/support/index.js

@ -14,9 +14,9 @@
// ***********************************************************
// import frappe commands
import '../../../frappe/cypress/support/index'
import '../../../frappe/cypress/support/index';
// Import commands.js using ES2015 syntax:
import './commands'
import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands')

2
erpnext/crm/doctype/lost_reason_detail/lost_reason_detail.js

@ -2,7 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on('Lost Reason Detail', {
refresh: function(frm) {
refresh: function() {
}
});

1
erpnext/crm/doctype/lost_reason_detail/lost_reason_detail.py

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class LostReasonDetail(Document):

14
erpnext/crm/doctype/lost_reason_detail/test_lost_reason_detail.py

@ -1,14 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest, time
from frappe.utils.selenium_testdriver import TestDriver
from erpnext.crm.doctype.opportunity.test_opportunity import make_opportunity
class TestLostReason(unittest.TestCase):
pass

2
erpnext/crm/doctype/opportunity_lost_reason/opportunity_lost_reason.js

@ -2,7 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on('Opportunity Lost Reason', {
refresh: function(frm) {
refresh: function() {
}
});

1
erpnext/crm/doctype/opportunity_lost_reason/opportunity_lost_reason.py

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class OpportunityLostReason(Document):

10
erpnext/crm/doctype/opportunity_lost_reason/test_opportunity_lost_reason.py

@ -1,10 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestOpportunityLostReason(unittest.TestCase):
pass
Loading…
Cancel
Save