diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-10 15:14:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 15:14:03 +0300 |
commit | a0ef416aa769022ce9e97dcc87f88a0ae9e6cc58 (patch) | |
tree | 4e5dcc1cf90307d4586a9ea6a07172d45e347e48 | |
parent | ef75c980536471c0729a2319440e3083cd57a4f0 (diff) | |
parent | 76a21b9626b7556638db188c157e3e8036803326 (diff) |
Merge pull request #6596 from mezotaken/master
Fix issues with testing process
-rw-r--r-- | launch.py | 1 | ||||
-rw-r--r-- | test/basic_features/txt2img_test.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -282,6 +282,7 @@ def tests(test_dir): 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:
proc = subprocess.Popen([sys.executable, *sys.argv], stdout=stdout, stderr=stderr)
diff --git a/test/basic_features/txt2img_test.py b/test/basic_features/txt2img_test.py index 5b27a7ec..5aa43a44 100644 --- a/test/basic_features/txt2img_test.py +++ b/test/basic_features/txt2img_test.py @@ -43,6 +43,7 @@ class TestTxt2ImgWorking(unittest.TestCase): 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.assertEqual(requests.post(self.url_txt2img, json=self.simple_txt2img).status_code, 200) def test_txt2img_not_square_image_performed(self): self.simple_txt2img["height"] = 128 |