Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
a0ef416a
Unverified
Commit
a0ef416a
authored
Jan 10, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 10, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6596 from mezotaken/master
Fix issues with testing process
parents
ef75c980
76a21b96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
launch.py
launch.py
+1
-0
txt2img_test.py
test/basic_features/txt2img_test.py
+1
-0
No files found.
launch.py
View file @
a0ef416a
...
@@ -282,6 +282,7 @@ def tests(test_dir):
...
@@ -282,6 +282,7 @@ def tests(test_dir):
print
(
f
"Launching Web UI in another process for testing with arguments: {' '.join(sys.argv[1:])}"
)
print
(
f
"Launching Web UI in another process for testing with arguments: {' '.join(sys.argv[1:])}"
)
os
.
environ
[
'COMMANDLINE_ARGS'
]
=
""
with
open
(
'test/stdout.txt'
,
"w"
,
encoding
=
"utf8"
)
as
stdout
,
open
(
'test/stderr.txt'
,
"w"
,
encoding
=
"utf8"
)
as
stderr
:
with
open
(
'test/stdout.txt'
,
"w"
,
encoding
=
"utf8"
)
as
stdout
,
open
(
'test/stderr.txt'
,
"w"
,
encoding
=
"utf8"
)
as
stderr
:
proc
=
subprocess
.
Popen
([
sys
.
executable
,
*
sys
.
argv
],
stdout
=
stdout
,
stderr
=
stderr
)
proc
=
subprocess
.
Popen
([
sys
.
executable
,
*
sys
.
argv
],
stdout
=
stdout
,
stderr
=
stderr
)
...
...
test/basic_features/txt2img_test.py
View file @
a0ef416a
...
@@ -43,6 +43,7 @@ class TestTxt2ImgWorking(unittest.TestCase):
...
@@ -43,6 +43,7 @@ class TestTxt2ImgWorking(unittest.TestCase):
def
test_txt2img_with_complex_prompt_performed
(
self
):
def
test_txt2img_with_complex_prompt_performed
(
self
):
self
.
simple_txt2img
[
"prompt"
]
=
"((emphasis)), (emphasis1:1.1), [to:1], [from::2], [from:to:0.3], [alt|alt1]"
self
.
simple_txt2img
[
"prompt"
]
=
"((emphasis)), (emphasis1:1.1), [to:1], [from::2], [from:to:0.3], [alt|alt1]"
self
.
assertEqual
(
requests
.
post
(
self
.
url_txt2img
,
json
=
self
.
simple_txt2img
)
.
status_code
,
200
)
def
test_txt2img_not_square_image_performed
(
self
):
def
test_txt2img_not_square_image_performed
(
self
):
self
.
simple_txt2img
[
"height"
]
=
128
self
.
simple_txt2img
[
"height"
]
=
128
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment