kuapir 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +77 -0
- data/LICENSE +21 -0
- data/README.md +170 -0
- data/Rakefile +12 -0
- data/docs/BoxOffice.md +26 -0
- data/docs/BoxOfficeResponse.md +20 -0
- data/docs/Company.md +18 -0
- data/docs/Country.md +18 -0
- data/docs/DigitalReleaseItem.md +44 -0
- data/docs/DigitalReleaseResponse.md +22 -0
- data/docs/Distribution.md +28 -0
- data/docs/DistributionResponse.md +20 -0
- data/docs/Episode.md +28 -0
- data/docs/Fact.md +22 -0
- data/docs/FactResponse.md +20 -0
- data/docs/Film.md +100 -0
- data/docs/FilmSearchByFiltersResponse.md +22 -0
- data/docs/FilmSearchByFiltersResponseItems.md +42 -0
- data/docs/FilmSearchResponse.md +24 -0
- data/docs/FilmSearchResponseFilms.md +42 -0
- data/docs/FilmSequelsAndPrequelsResponse.md +30 -0
- data/docs/FilmTopResponse.md +20 -0
- data/docs/FilmTopResponseFilms.md +38 -0
- data/docs/FilmsApi.md +1126 -0
- data/docs/FiltersResponse.md +20 -0
- data/docs/FiltersResponseCountries.md +20 -0
- data/docs/FiltersResponseGenres.md +20 -0
- data/docs/Genre.md +18 -0
- data/docs/ImageResponse.md +22 -0
- data/docs/ImageResponseItems.md +20 -0
- data/docs/PersonByNameResponse.md +20 -0
- data/docs/PersonByNameResponseItems.md +28 -0
- data/docs/PersonResponse.md +50 -0
- data/docs/PersonResponseFilms.md +30 -0
- data/docs/PersonResponseSpouses.md +32 -0
- data/docs/PersonsApi.md +83 -0
- data/docs/PremiereResponse.md +20 -0
- data/docs/PremiereResponseItem.md +36 -0
- data/docs/RelatedFilmResponse.md +20 -0
- data/docs/RelatedFilmResponseItems.md +30 -0
- data/docs/ReviewDetailsResponse.md +32 -0
- data/docs/ReviewsApi.md +155 -0
- data/docs/ReviewsResponse.md +34 -0
- data/docs/ReviewsResponseReviews.md +32 -0
- data/docs/Season.md +20 -0
- data/docs/SeasonResponse.md +20 -0
- data/docs/StaffApi.md +147 -0
- data/docs/StaffResponse.md +30 -0
- data/docs/VideoResponse.md +20 -0
- data/docs/VideoResponseItems.md +22 -0
- data/kinopoiskapiunofficial-openapi.json +2918 -0
- data/kuapir.gemspec +42 -0
- data/lib/kuapir/api/films_api.rb +1193 -0
- data/lib/kuapir/api/persons_api.rb +89 -0
- data/lib/kuapir/api/reviews_api.rb +165 -0
- data/lib/kuapir/api/staff_api.rb +145 -0
- data/lib/kuapir/api_client.rb +390 -0
- data/lib/kuapir/api_error.rb +57 -0
- data/lib/kuapir/configuration.rb +287 -0
- data/lib/kuapir/models/box_office.rb +246 -0
- data/lib/kuapir/models/box_office_response.rb +224 -0
- data/lib/kuapir/models/company.rb +214 -0
- data/lib/kuapir/models/country.rb +214 -0
- data/lib/kuapir/models/digital_release_item.rb +334 -0
- data/lib/kuapir/models/digital_release_response.rb +232 -0
- data/lib/kuapir/models/distribution.rb +300 -0
- data/lib/kuapir/models/distribution_response.rb +224 -0
- data/lib/kuapir/models/episode.rb +249 -0
- data/lib/kuapir/models/fact.rb +266 -0
- data/lib/kuapir/models/fact_response.rb +224 -0
- data/lib/kuapir/models/film.rb +551 -0
- data/lib/kuapir/models/film_search_by_filters_response.rb +232 -0
- data/lib/kuapir/models/film_search_by_filters_response_items.rb +319 -0
- data/lib/kuapir/models/film_search_response.rb +244 -0
- data/lib/kuapir/models/film_search_response_films.rb +311 -0
- data/lib/kuapir/models/film_sequels_and_prequels_response.rb +300 -0
- data/lib/kuapir/models/film_top_response.rb +224 -0
- data/lib/kuapir/models/film_top_response_films.rb +272 -0
- data/lib/kuapir/models/filters_response.rb +226 -0
- data/lib/kuapir/models/filters_response_countries.rb +214 -0
- data/lib/kuapir/models/filters_response_genres.rb +214 -0
- data/lib/kuapir/models/genre.rb +214 -0
- data/lib/kuapir/models/image_response.rb +238 -0
- data/lib/kuapir/models/image_response_items.rb +214 -0
- data/lib/kuapir/models/person_by_name_response.rb +224 -0
- data/lib/kuapir/models/person_by_name_response_items.rb +274 -0
- data/lib/kuapir/models/person_response.rb +363 -0
- data/lib/kuapir/models/person_response_films.rb +284 -0
- data/lib/kuapir/models/person_response_spouses.rb +283 -0
- data/lib/kuapir/models/premiere_response.rb +224 -0
- data/lib/kuapir/models/premiere_response_item.rb +289 -0
- data/lib/kuapir/models/related_film_response.rb +224 -0
- data/lib/kuapir/models/related_film_response_items.rb +279 -0
- data/lib/kuapir/models/review_details_response.rb +314 -0
- data/lib/kuapir/models/reviews_response.rb +294 -0
- data/lib/kuapir/models/reviews_response_reviews.rb +282 -0
- data/lib/kuapir/models/season.rb +224 -0
- data/lib/kuapir/models/season_response.rb +224 -0
- data/lib/kuapir/models/staff_response.rb +301 -0
- data/lib/kuapir/models/video_response.rb +224 -0
- data/lib/kuapir/models/video_response_items.rb +255 -0
- data/lib/kuapir/version.rb +5 -0
- data/lib/kuapir.rb +83 -0
- data/openapi-generator-templates/Gemfile.mustache +9 -0
- data/openapi-generator-templates/README.mustache +148 -0
- data/openapi-generator-templates/Rakefile.mustache +10 -0
- data/openapi-generator-templates/api.mustache +205 -0
- data/openapi-generator-templates/api_client.mustache +260 -0
- data/openapi-generator-templates/api_client_faraday_partial.mustache +136 -0
- data/openapi-generator-templates/api_client_spec.mustache +216 -0
- data/openapi-generator-templates/api_client_typhoeus_partial.mustache +153 -0
- data/openapi-generator-templates/api_doc.mustache +118 -0
- data/openapi-generator-templates/api_error.mustache +45 -0
- data/openapi-generator-templates/api_info.mustache +12 -0
- data/openapi-generator-templates/api_test.mustache +43 -0
- data/openapi-generator-templates/base_object.mustache +120 -0
- data/openapi-generator-templates/configuration.mustache +381 -0
- data/openapi-generator-templates/configuration_spec.mustache +30 -0
- data/openapi-generator-templates/configuration_tls_faraday_partial.mustache +29 -0
- data/openapi-generator-templates/configuration_tls_typhoeus_partial.mustache +34 -0
- data/openapi-generator-templates/gem.mustache +50 -0
- data/openapi-generator-templates/gemspec.mustache +31 -0
- data/openapi-generator-templates/git_push.sh.mustache +57 -0
- data/openapi-generator-templates/gitignore.mustache +39 -0
- data/openapi-generator-templates/model.mustache +22 -0
- data/openapi-generator-templates/model_doc.mustache +12 -0
- data/openapi-generator-templates/model_test.mustache +73 -0
- data/openapi-generator-templates/partial_model_enum_class.mustache +20 -0
- data/openapi-generator-templates/partial_model_generic.mustache +371 -0
- data/openapi-generator-templates/partial_model_generic_doc.mustache +28 -0
- data/openapi-generator-templates/partial_oneof_module.mustache +137 -0
- data/openapi-generator-templates/partial_oneof_module_doc.mustache +92 -0
- data/openapi-generator-templates/rspec.mustache +2 -0
- data/openapi-generator-templates/rubocop.mustache +148 -0
- data/openapi-generator-templates/spec_helper.mustache +99 -0
- data/openapi-generator-templates/travis.mustache +14 -0
- data/openapi-generator-templates/version.mustache +3 -0
- data/openapitools.json +21 -0
- data/spec/api/films_api_spec.rb +227 -0
- data/spec/api/persons_api_spec.rb +45 -0
- data/spec/api/reviews_api_spec.rb +57 -0
- data/spec/api/staff_api_spec.rb +54 -0
- data/spec/api_client_spec.rb +229 -0
- data/spec/configuration_spec.rb +28 -0
- data/spec/models/box_office_response_spec.rb +37 -0
- data/spec/models/box_office_spec.rb +55 -0
- data/spec/models/company_spec.rb +31 -0
- data/spec/models/country_spec.rb +31 -0
- data/spec/models/digital_release_item_spec.rb +109 -0
- data/spec/models/digital_release_response_spec.rb +43 -0
- data/spec/models/distribution_response_spec.rb +37 -0
- data/spec/models/distribution_spec.rb +69 -0
- data/spec/models/episode_spec.rb +61 -0
- data/spec/models/fact_response_spec.rb +37 -0
- data/spec/models/fact_spec.rb +47 -0
- data/spec/models/film_search_by_filters_response_items_spec.rb +107 -0
- data/spec/models/film_search_by_filters_response_spec.rb +43 -0
- data/spec/models/film_search_response_films_spec.rb +107 -0
- data/spec/models/film_search_response_spec.rb +49 -0
- data/spec/models/film_sequels_and_prequels_response_spec.rb +71 -0
- data/spec/models/film_spec.rb +285 -0
- data/spec/models/film_top_response_films_spec.rb +91 -0
- data/spec/models/film_top_response_spec.rb +37 -0
- data/spec/models/filters_response_countries_spec.rb +37 -0
- data/spec/models/filters_response_genres_spec.rb +37 -0
- data/spec/models/filters_response_spec.rb +37 -0
- data/spec/models/genre_spec.rb +31 -0
- data/spec/models/image_response_items_spec.rb +37 -0
- data/spec/models/image_response_spec.rb +43 -0
- data/spec/models/person_by_name_response_items_spec.rb +65 -0
- data/spec/models/person_by_name_response_spec.rb +37 -0
- data/spec/models/person_response_films_spec.rb +71 -0
- data/spec/models/person_response_spec.rb +131 -0
- data/spec/models/person_response_spouses_spec.rb +77 -0
- data/spec/models/premiere_response_item_spec.rb +85 -0
- data/spec/models/premiere_response_spec.rb +37 -0
- data/spec/models/related_film_response_items_spec.rb +71 -0
- data/spec/models/related_film_response_spec.rb +37 -0
- data/spec/models/review_details_response_spec.rb +77 -0
- data/spec/models/reviews_response_reviews_spec.rb +77 -0
- data/spec/models/reviews_response_spec.rb +79 -0
- data/spec/models/season_response_spec.rb +37 -0
- data/spec/models/season_spec.rb +37 -0
- data/spec/models/staff_response_spec.rb +71 -0
- data/spec/models/video_response_items_spec.rb +47 -0
- data/spec/models/video_response_spec.rb +37 -0
- data/spec/spec_helper.rb +107 -0
- metadata +326 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmSearchByFiltersResponse
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmSearchByFiltersResponse do
|
19
|
+
let(:instance) { Kuapir::FilmSearchByFiltersResponse.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmSearchByFiltersResponse" do
|
22
|
+
it "should create an instance of FilmSearchByFiltersResponse" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmSearchByFiltersResponse)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "total"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "total_pages"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "items"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmSearchResponseFilms
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmSearchResponseFilms do
|
19
|
+
let(:instance) { Kuapir::FilmSearchResponseFilms.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmSearchResponseFilms" do
|
22
|
+
it "should create an instance of FilmSearchResponseFilms" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmSearchResponseFilms)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "film_id"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "name_ru"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "name_en"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "type"' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
validator = Kuapir::FilmSearchResponseFilms::EnumAttributeValidator.new('String', %w[FILM TV_SHOW VIDEO MINI_SERIES TV_SERIES UNKNOWN])
|
48
|
+
validator.allowable_values.each do |value|
|
49
|
+
expect { instance.type = value }.not_to raise_error
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "year"' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "description"' do
|
61
|
+
it "should work" do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "film_length"' do
|
67
|
+
it "should work" do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "countries"' do
|
73
|
+
it "should work" do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "genres"' do
|
79
|
+
it "should work" do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "rating"' do
|
85
|
+
it "should work" do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "rating_vote_count"' do
|
91
|
+
it "should work" do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "poster_url"' do
|
97
|
+
it "should work" do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe 'test attribute "poster_url_preview"' do
|
103
|
+
it "should work" do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmSearchResponse
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmSearchResponse do
|
19
|
+
let(:instance) { Kuapir::FilmSearchResponse.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmSearchResponse" do
|
22
|
+
it "should create an instance of FilmSearchResponse" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmSearchResponse)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "keyword"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "pages_count"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "search_films_count_result"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "films"' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmSequelsAndPrequelsResponse
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmSequelsAndPrequelsResponse do
|
19
|
+
let(:instance) { Kuapir::FilmSequelsAndPrequelsResponse.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmSequelsAndPrequelsResponse" do
|
22
|
+
it "should create an instance of FilmSequelsAndPrequelsResponse" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmSequelsAndPrequelsResponse)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "film_id"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "name_ru"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "name_en"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "name_original"' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "poster_url"' do
|
51
|
+
it "should work" do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "poster_url_preview"' do
|
57
|
+
it "should work" do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "relation_type"' do
|
63
|
+
it "should work" do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SEQUEL", "PREQUEL", "REMAKE", "UNKNOWN"])
|
66
|
+
# validator.allowable_values.each do |value|
|
67
|
+
# expect { instance.relation_type = value }.not_to raise_error
|
68
|
+
# end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,285 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::Film
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::Film do
|
19
|
+
let(:instance) { Kuapir::Film.new }
|
20
|
+
|
21
|
+
describe "test an instance of Film" do
|
22
|
+
it "should create an instance of Film" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::Film)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "kinopoisk_id"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "imdb_id"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "name_ru"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "name_en"' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "name_original"' do
|
51
|
+
it "should work" do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "poster_url"' do
|
57
|
+
it "should work" do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "poster_url_preview"' do
|
63
|
+
it "should work" do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "reviews_count"' do
|
69
|
+
it "should work" do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe 'test attribute "rating_good_review"' do
|
75
|
+
it "should work" do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe 'test attribute "rating_good_review_vote_count"' do
|
81
|
+
it "should work" do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
describe 'test attribute "rating_kinopoisk"' do
|
87
|
+
it "should work" do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe 'test attribute "rating_kinopoisk_vote_count"' do
|
93
|
+
it "should work" do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe 'test attribute "rating_imdb"' do
|
99
|
+
it "should work" do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
describe 'test attribute "rating_imdb_vote_count"' do
|
105
|
+
it "should work" do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
describe 'test attribute "rating_film_critics"' do
|
111
|
+
it "should work" do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe 'test attribute "rating_film_critics_vote_count"' do
|
117
|
+
it "should work" do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
describe 'test attribute "rating_await"' do
|
123
|
+
it "should work" do
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe 'test attribute "rating_await_count"' do
|
129
|
+
it "should work" do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe 'test attribute "rating_rf_critics"' do
|
135
|
+
it "should work" do
|
136
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
describe 'test attribute "rating_rf_critics_vote_count"' do
|
141
|
+
it "should work" do
|
142
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
describe 'test attribute "web_url"' do
|
147
|
+
it "should work" do
|
148
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
describe 'test attribute "year"' do
|
153
|
+
it "should work" do
|
154
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
describe 'test attribute "film_length"' do
|
159
|
+
it "should work" do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
describe 'test attribute "slogan"' do
|
165
|
+
it "should work" do
|
166
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
describe 'test attribute "description"' do
|
171
|
+
it "should work" do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
describe 'test attribute "short_description"' do
|
177
|
+
it "should work" do
|
178
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
describe 'test attribute "editor_annotation"' do
|
183
|
+
it "should work" do
|
184
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
describe 'test attribute "is_tickets_available"' do
|
189
|
+
it "should work" do
|
190
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
describe 'test attribute "production_status"' do
|
195
|
+
it "should work" do
|
196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
197
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["FILMING", "PRE_PRODUCTION", "COMPLETED", "ANNOUNCED", "UNKNOWN", "POST_PRODUCTION"])
|
198
|
+
# validator.allowable_values.each do |value|
|
199
|
+
# expect { instance.production_status = value }.not_to raise_error
|
200
|
+
# end
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
describe 'test attribute "type"' do
|
205
|
+
it "should work" do
|
206
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
207
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["FILM", "VIDEO", "TV_SERIES", "MINI_SERIES", "TV_SHOW"])
|
208
|
+
# validator.allowable_values.each do |value|
|
209
|
+
# expect { instance.type = value }.not_to raise_error
|
210
|
+
# end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
describe 'test attribute "rating_mpaa"' do
|
215
|
+
it "should work" do
|
216
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
describe 'test attribute "rating_age_limits"' do
|
221
|
+
it "should work" do
|
222
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
describe 'test attribute "has_imax"' do
|
227
|
+
it "should work" do
|
228
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
describe 'test attribute "has3_d"' do
|
233
|
+
it "should work" do
|
234
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
describe 'test attribute "last_sync"' do
|
239
|
+
it "should work" do
|
240
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
describe 'test attribute "countries"' do
|
245
|
+
it "should work" do
|
246
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
describe 'test attribute "genres"' do
|
251
|
+
it "should work" do
|
252
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
describe 'test attribute "start_year"' do
|
257
|
+
it "should work" do
|
258
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
describe 'test attribute "end_year"' do
|
263
|
+
it "should work" do
|
264
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
describe 'test attribute "serial"' do
|
269
|
+
it "should work" do
|
270
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
describe 'test attribute "short_film"' do
|
275
|
+
it "should work" do
|
276
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
describe 'test attribute "completed"' do
|
281
|
+
it "should work" do
|
282
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmTopResponseFilms
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmTopResponseFilms do
|
19
|
+
let(:instance) { Kuapir::FilmTopResponseFilms.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmTopResponseFilms" do
|
22
|
+
it "should create an instance of FilmTopResponseFilms" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmTopResponseFilms)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "film_id"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "name_ru"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "name_en"' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "year"' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "film_length"' do
|
51
|
+
it "should work" do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "countries"' do
|
57
|
+
it "should work" do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "genres"' do
|
63
|
+
it "should work" do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "rating"' do
|
69
|
+
it "should work" do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe 'test attribute "rating_vote_count"' do
|
75
|
+
it "should work" do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe 'test attribute "poster_url"' do
|
81
|
+
it "should work" do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
describe 'test attribute "poster_url_preview"' do
|
87
|
+
it "should work" do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinopoisk Unofficial API
|
4
|
+
|
5
|
+
# The version of the OpenAPI document: 2.0.1
|
6
|
+
# Contact: support@kinopoiskapiunofficial.tech
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 5.3.1
|
9
|
+
#
|
10
|
+
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
|
15
|
+
# Unit tests for Kuapir::FilmTopResponse
|
16
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe Kuapir::FilmTopResponse do
|
19
|
+
let(:instance) { Kuapir::FilmTopResponse.new }
|
20
|
+
|
21
|
+
describe "test an instance of FilmTopResponse" do
|
22
|
+
it "should create an instance of FilmTopResponse" do
|
23
|
+
expect(instance).to be_instance_of(Kuapir::FilmTopResponse)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'test attribute "pages_count"' do
|
27
|
+
it "should work" do
|
28
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "films"' do
|
33
|
+
it "should work" do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|