mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-11-03 03:00:43 +08:00
add # 新增偷菜功能
This commit is contained in:
@@ -72,5 +72,10 @@ class WarehouseTests(unittest.TestCase):
|
||||
kind, 1, 1)
|
||||
with Image.open(BytesIO(content)) as image:
|
||||
self.assertEqual(image.format, 'JPEG')
|
||||
self.assertEqual(image.size, (1024, 1536))
|
||||
self.assertEqual(image.size, (768, 1152))
|
||||
self.assertLess(len(content), 500000)
|
||||
high = render_warehouse(renderer, rows, self.snapshot,
|
||||
kind, 1, 1, high=True)
|
||||
with Image.open(BytesIO(high)) as image:
|
||||
self.assertEqual(image.size, (1024, 1536))
|
||||
self.assertGreater(len(high), len(content))
|
||||
|
||||
Reference in New Issue
Block a user