Sha256: 8b0c6085600c589ba4e8bb7ec7e3d6c1c83f4b62b66d6b805517037a8504c5a3

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require 'integration_helper'
require 'mws/reports'

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

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

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

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

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

  def test_getting_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?
      assert res.records_count || res.parse
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-2.1.1 test/integration/test_reports.rb
peddler-2.1.0 test/integration/test_reports.rb