Browse Source

Comment out sales import from full import task

pull/1353/head
Kat 3 years ago
parent
commit
4b8a8b0ca8
  1. 2
      lib/tasks/full_import.rake
  2. 4
      spec/lib/tasks/full_import_spec.rb

2
lib/tasks/full_import.rake

@ -18,7 +18,7 @@ namespace :core do
Import.new(Imports::DataProtectionConfirmationImportService, :create_data_protection_confirmations, "dataprotect"), Import.new(Imports::DataProtectionConfirmationImportService, :create_data_protection_confirmations, "dataprotect"),
Import.new(Imports::OrganisationRentPeriodImportService, :create_organisation_rent_periods, "rent-period"), Import.new(Imports::OrganisationRentPeriodImportService, :create_organisation_rent_periods, "rent-period"),
Import.new(Imports::LettingsLogsImportService, :create_logs, "logs"), Import.new(Imports::LettingsLogsImportService, :create_logs, "logs"),
Import.new(Imports::SalesLogsImportService, :create_logs, "logs"), # Import.new(Imports::SalesLogsImportService, :create_logs, "logs"),
] ]
import_list.each do |step| import_list.each do |step|

4
spec/lib/tasks/full_import_spec.rb

@ -56,7 +56,7 @@ describe "rake core:full_import", type: :task do
expect(data_protection_service).to receive(:create_data_protection_confirmations).with("dataprotect") expect(data_protection_service).to receive(:create_data_protection_confirmations).with("dataprotect")
expect(rent_period_service).to receive(:create_organisation_rent_periods).with("rent-period") expect(rent_period_service).to receive(:create_organisation_rent_periods).with("rent-period")
expect(lettings_logs_service).to receive(:create_logs).with("logs") expect(lettings_logs_service).to receive(:create_logs).with("logs")
expect(sales_logs_service).to receive(:create_logs).with("logs") # expect(sales_logs_service).to receive(:create_logs).with("logs")
task.invoke(fixture_path) task.invoke(fixture_path)
end end
@ -76,7 +76,7 @@ describe "rake core:full_import", type: :task do
expect(data_protection_service).to receive(:create_data_protection_confirmations) expect(data_protection_service).to receive(:create_data_protection_confirmations)
expect(rent_period_service).to receive(:create_organisation_rent_periods) expect(rent_period_service).to receive(:create_organisation_rent_periods)
expect(lettings_logs_service).to receive(:create_logs) expect(lettings_logs_service).to receive(:create_logs)
expect(sales_logs_service).to receive(:create_logs) # expect(sales_logs_service).to receive(:create_logs)
expect(scheme_service).not_to receive(:create_schemes) expect(scheme_service).not_to receive(:create_schemes)
expect(location_service).not_to receive(:create_scheme_locations) expect(location_service).not_to receive(:create_scheme_locations)

Loading…
Cancel
Save