Sha256: 45122a2e3a475ddd20a31713f9dda53ba546c03b2cc515cae012de0f38492838

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require 'integration_helper'
require 'mws/reports'

class TestReports < IntegrationTest
  def test_gets_report_request_count
    clients.each do |client|
      res = client.get_report_request_count
      refute_empty res.parse
    end
  end

  def test_gets_report_request_list
    clients.each do |client|
      res = client.get_report_request_list
      refute_empty res.parse
    end
  end

  def test_gets_report_schedule_count
    clients.each do |client|
      res = client.get_report_schedule_count
      refute_empty res.parse
    end
  end

  def test_lists_report_schedules
    clients.each do |client|
      res = client.get_report_schedule_list
      refute_empty res.parse
    end
  end

  def test_gets_report_count
    clients.each do |client|
      res = client.get_report_count
      refute_empty res.parse
    end
  end

  def test_gets_report
    clients.each do |client|
      res = client.get_report_list(max_count: 1)
      id = res.parse['ReportInfo']['ReportId']
      res = client.get_report(id)
      assert res.valid?
      refute_empty res.parse || res.records_count
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
peddler-2.0.0 test/integration/test_reports.rb
peddler-1.6.7 test/integration/test_reports.rb
peddler-1.6.6 test/integration/test_reports.rb
peddler-1.6.5 test/integration/test_reports.rb
peddler-1.6.4 test/integration/test_reports.rb