vacuum 3.0.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +0,0 @@
1
- - :marketplace: CA
2
- :access_key: AKIAIWQTVHVWCQA5THXQ
3
- :secret_key: VOhSIqIY1wF5selhhJYJGVnIET9k5q0J8QjTX38i
4
- :partner_tag: adabo00-20
5
- - :marketplace: DE
6
- :access_key: AKIAIRMMTDVD7JUI65HA
7
- :secret_key: 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
8
- :partner_tag: partly0e-21
9
- - :marketplace: ES
10
- :access_key: AKIAIRMMTDVD7JUI65HA
11
- :secret_key: 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
12
- :partner_tag: partly01-21
13
- # - :marketplace: FR
14
- # :access_key: AKIAJDNYBNMN23YBFK3A
15
- # :secret_key: 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
16
- # :partner_tag: adabo-21
17
- # - :marketplace: IT
18
- # :access_key: AKIAIIJY6LYBYWTHITZQ
19
- # :secret_key: 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
20
- # :partner_tag: adabo0c-21
21
- - :marketplace: GB
22
- :access_key: AKIAJPAXMP45DOQJPHJQ
23
- :secret_key: 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
24
- :partner_tag: adabo21-21
25
- - :marketplace: US
26
- :access_key: AKIAIWQTVHVWCQA5THXQ
27
- :secret_key: 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
28
- :partner_tag: adabo-20
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'minitest/autorun'
4
- require 'vacuum/locale'
5
-
6
- module Vacuum
7
- class TestLocale < Minitest::Test
8
- def test_find
9
- assert_kind_of Locale, Locale.find(:us)
10
- end
11
-
12
- def test_find_uppercase_string
13
- assert_kind_of Locale, Locale.find('US')
14
- end
15
-
16
- def test_find_uk
17
- assert_equal :gb, Locale.find('UK').code
18
- end
19
-
20
- def test_raise_if_not_found
21
- assert_raises Locale::NotFound do
22
- Locale.find('foo')
23
- end
24
- end
25
-
26
- def test_build_url
27
- assert_equal 'https://webservices.amazon.com/paapi5/foo',
28
- Locale.find('US').build_url('Foo')
29
- end
30
-
31
- def test_marketplace
32
- assert_equal 'www.amazon.com', Locale.find('US').marketplace
33
- end
34
- end
35
- end
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'integration_helper'
4
-
5
- module Vacuum
6
- class RequestTest < IntegrationTest
7
- def test_get_browse_nodes
8
- requests.each do |request|
9
- response = request.get_browse_nodes(browse_node_ids: ['3045'])
10
- refute response.error?
11
- end
12
- end
13
-
14
- def test_get_items
15
- requests.each do |request|
16
- response = request.get_items(item_ids: ['B07212L4G2'])
17
- refute response.error?
18
- end
19
- end
20
-
21
- def test_get_items_with_options
22
- requests.each do |request|
23
- response = request.get_items(item_ids: 'B07212L4G2',
24
- resources: ['BrowseNodeInfo.BrowseNodes'])
25
- item = response.dig('ItemsResult', 'Items').first
26
- assert item.key?('BrowseNodeInfo')
27
- end
28
- end
29
-
30
- def test_get_variations
31
- requests.each do |request|
32
- response = request.get_variations(asin: 'B07212L4G2')
33
- refute response.error?
34
- end
35
- end
36
-
37
- def test_search_items
38
- requests.each do |request|
39
- response = request.search_items(keywords: 'Harry Potter')
40
- refute response.error?
41
- end
42
- end
43
- end
44
- end