SwaggerStableDiffusionWebui 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
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 +9 -0
- data/README.md +150 -0
- data/Rakefile +10 -0
- data/SwaggerStableDiffusionWebui.gemspec +38 -0
- data/docs/BodyDetectControlnetDetectPost.md +26 -0
- data/docs/DefaultApi.md +3127 -0
- data/docs/Estimation.md +30 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/LocationInner.md +15 -0
- data/docs/PredictBody.md +30 -0
- data/docs/ProgressRequest.md +20 -0
- data/docs/ProgressResponse.md +32 -0
- data/docs/QuicksettingsHint.md +20 -0
- data/docs/Request.md +15 -0
- data/docs/ResetBody.md +20 -0
- data/docs/ValidationError.md +22 -0
- data/git_push.sh +57 -0
- data/lib/SwaggerStableDiffusionWebui/api/default_api.rb +3027 -0
- data/lib/SwaggerStableDiffusionWebui/api_client.rb +391 -0
- data/lib/SwaggerStableDiffusionWebui/api_error.rb +58 -0
- data/lib/SwaggerStableDiffusionWebui/configuration.rb +288 -0
- data/lib/SwaggerStableDiffusionWebui/models/body_detect_controlnet_detect_post.rb +265 -0
- data/lib/SwaggerStableDiffusionWebui/models/estimation.rb +285 -0
- data/lib/SwaggerStableDiffusionWebui/models/http_validation_error.rb +221 -0
- data/lib/SwaggerStableDiffusionWebui/models/location_inner.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/predict_body.rb +283 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_request.rb +232 -0
- data/lib/SwaggerStableDiffusionWebui/models/progress_response.rb +301 -0
- data/lib/SwaggerStableDiffusionWebui/models/quicksettings_hint.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/request.rb +230 -0
- data/lib/SwaggerStableDiffusionWebui/models/reset_body.rb +238 -0
- data/lib/SwaggerStableDiffusionWebui/models/validation_error.rb +254 -0
- data/lib/SwaggerStableDiffusionWebui/version.rb +15 -0
- data/lib/SwaggerStableDiffusionWebui.rb +51 -0
- data/spec/api/default_api_spec.rb +574 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/body_detect_controlnet_detect_post_spec.rb +58 -0
- data/spec/models/estimation_spec.rb +70 -0
- data/spec/models/http_validation_error_spec.rb +34 -0
- data/spec/models/location_inner_spec.rb +28 -0
- data/spec/models/predict_body_spec.rb +70 -0
- data/spec/models/progress_request_spec.rb +40 -0
- data/spec/models/progress_response_spec.rb +76 -0
- data/spec/models/quicksettings_hint_spec.rb +40 -0
- data/spec/models/request_spec.rb +28 -0
- data/spec/models/reset_body_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +46 -0
- data/spec/spec_helper.rb +111 -0
- metadata +147 -0
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe SwaggerStableDiffusionWebui::ApiClient do
|
16
|
+
context 'initialization' do
|
17
|
+
context 'URL stuff' do
|
18
|
+
context 'host' do
|
19
|
+
it 'removes http from host' do
|
20
|
+
SwaggerStableDiffusionWebui.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.host).to eq('example.com')
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'removes https from host' do
|
25
|
+
SwaggerStableDiffusionWebui.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(SwaggerStableDiffusionWebui::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'removes trailing path from host' do
|
30
|
+
SwaggerStableDiffusionWebui.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.host).to eq('hobo.com')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'base_path' do
|
36
|
+
it "prepends a slash to base_path" do
|
37
|
+
SwaggerStableDiffusionWebui.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
+
end
|
40
|
+
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
42
|
+
SwaggerStableDiffusionWebui.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "ends up as a blank string if nil" do
|
47
|
+
SwaggerStableDiffusionWebui.configure { |c| c.base_path = nil }
|
48
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.base_path).to eq('')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
|
+
let(:config) { SwaggerStableDiffusionWebui::Configuration.new }
|
56
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new(config) }
|
57
|
+
|
58
|
+
it 'defaults to nil' do
|
59
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.params_encoding).to eq(nil)
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
61
|
+
|
62
|
+
request = api_client.build_request(:get, '/test')
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'can be customized' do
|
67
|
+
config.params_encoding = :multi
|
68
|
+
request = api_client.build_request(:get, '/test')
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'timeout in #build_request' do
|
74
|
+
let(:config) { SwaggerStableDiffusionWebui::Configuration.new }
|
75
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new(config) }
|
76
|
+
|
77
|
+
it 'defaults to 0' do
|
78
|
+
expect(SwaggerStableDiffusionWebui::Configuration.default.timeout).to eq(0)
|
79
|
+
expect(config.timeout).to eq(0)
|
80
|
+
|
81
|
+
request = api_client.build_request(:get, '/test')
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'can be customized' do
|
86
|
+
config.timeout = 100
|
87
|
+
request = api_client.build_request(:get, '/test')
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
describe '#deserialize' do
|
95
|
+
it "handles Array<Integer>" do
|
96
|
+
api_client = SwaggerStableDiffusionWebui::ApiClient.new
|
97
|
+
headers = { 'Content-Type' => 'application/json' }
|
98
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
99
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
100
|
+
expect(data).to be_instance_of(Array)
|
101
|
+
expect(data).to eq([12, 34])
|
102
|
+
end
|
103
|
+
|
104
|
+
it 'handles Array<Array<Integer>>' do
|
105
|
+
api_client = SwaggerStableDiffusionWebui::ApiClient.new
|
106
|
+
headers = { 'Content-Type' => 'application/json' }
|
107
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
108
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
109
|
+
expect(data).to be_instance_of(Array)
|
110
|
+
expect(data).to eq([[12, 34], [56]])
|
111
|
+
end
|
112
|
+
|
113
|
+
it 'handles Hash<String, String>' do
|
114
|
+
api_client = SwaggerStableDiffusionWebui::ApiClient.new
|
115
|
+
headers = { 'Content-Type' => 'application/json' }
|
116
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
117
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
118
|
+
expect(data).to be_instance_of(Hash)
|
119
|
+
expect(data).to eq(:message => 'Hello')
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe "#object_to_hash" do
|
124
|
+
it 'ignores nils and includes empty arrays' do
|
125
|
+
# uncomment below to test object_to_hash for model
|
126
|
+
# api_client = SwaggerStableDiffusionWebui::ApiClient.new
|
127
|
+
# _model = SwaggerStableDiffusionWebui::ModelName.new
|
128
|
+
# update the model attribute below
|
129
|
+
# _model.id = 1
|
130
|
+
# update the expected value (hash) below
|
131
|
+
# expected = {id: 1, name: '', tags: []}
|
132
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
describe '#build_collection_param' do
|
137
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
138
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new }
|
139
|
+
|
140
|
+
it 'works for csv' do
|
141
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
142
|
+
end
|
143
|
+
|
144
|
+
it 'works for ssv' do
|
145
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
146
|
+
end
|
147
|
+
|
148
|
+
it 'works for tsv' do
|
149
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
150
|
+
end
|
151
|
+
|
152
|
+
it 'works for pipes' do
|
153
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
154
|
+
end
|
155
|
+
|
156
|
+
it 'works for multi' do
|
157
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
158
|
+
end
|
159
|
+
|
160
|
+
it 'fails for invalid collection format' do
|
161
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
describe '#json_mime?' do
|
166
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new }
|
167
|
+
|
168
|
+
it 'works' do
|
169
|
+
expect(api_client.json_mime?(nil)).to eq false
|
170
|
+
expect(api_client.json_mime?('')).to eq false
|
171
|
+
|
172
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
173
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
174
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
175
|
+
|
176
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
177
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
178
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
describe '#select_header_accept' do
|
183
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new }
|
184
|
+
|
185
|
+
it 'works' do
|
186
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
187
|
+
expect(api_client.select_header_accept([])).to be_nil
|
188
|
+
|
189
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
190
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
191
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
192
|
+
|
193
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
194
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
describe '#select_header_content_type' do
|
199
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new }
|
200
|
+
|
201
|
+
it 'works' do
|
202
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
203
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
204
|
+
|
205
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
206
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
207
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
208
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
209
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
describe '#sanitize_filename' do
|
214
|
+
let(:api_client) { SwaggerStableDiffusionWebui::ApiClient.new }
|
215
|
+
|
216
|
+
it 'works' do
|
217
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
218
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
219
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
220
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
221
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
222
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
223
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
224
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
225
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe SwaggerStableDiffusionWebui::Configuration do
|
16
|
+
let(:config) { SwaggerStableDiffusionWebui::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("http://localhost")
|
22
|
+
# SwaggerStableDiffusionWebui.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("http://localhost")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("http://localhost")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost.new }
|
22
|
+
|
23
|
+
describe 'test an instance of BodyDetectControlnetDetectPost' do
|
24
|
+
it 'should create an instance of BodyDetectControlnetDetectPost' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::BodyDetectControlnetDetectPost)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "controlnet_module"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "controlnet_input_images"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "controlnet_processor_res"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "controlnet_threshold_a"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "controlnet_threshold_b"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::Estimation
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::Estimation do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::Estimation.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Estimation' do
|
24
|
+
it 'should create an instance of Estimation' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::Estimation)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "msg"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "rank"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "queue_size"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "avg_event_process_time"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "avg_event_concurrent_process_time"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "rank_eta"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "queue_eta"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::HTTPValidationError
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::HTTPValidationError do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::HTTPValidationError.new }
|
22
|
+
|
23
|
+
describe 'test an instance of HTTPValidationError' do
|
24
|
+
it 'should create an instance of HTTPValidationError' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::HTTPValidationError)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "detail"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::LocationInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::LocationInner do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::LocationInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of LocationInner' do
|
24
|
+
it 'should create an instance of LocationInner' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::LocationInner)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::PredictBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::PredictBody do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::PredictBody.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PredictBody' do
|
24
|
+
it 'should create an instance of PredictBody' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::PredictBody)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "session_hash"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "event_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "data"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "event_data"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "fn_index"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "batched"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "request"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::ProgressRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::ProgressRequest do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::ProgressRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ProgressRequest' do
|
24
|
+
it 'should create an instance of ProgressRequest' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::ProgressRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id_task"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "id_live_preview"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
=begin
|
2
|
+
#FastAPI
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SwaggerStableDiffusionWebui::ProgressResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe SwaggerStableDiffusionWebui::ProgressResponse do
|
21
|
+
let(:instance) { SwaggerStableDiffusionWebui::ProgressResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ProgressResponse' do
|
24
|
+
it 'should create an instance of ProgressResponse' do
|
25
|
+
expect(instance).to be_instance_of(SwaggerStableDiffusionWebui::ProgressResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "active"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "queued"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "completed"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "progress"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "eta"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "live_preview"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "id_live_preview"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "textinfo"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|