InvokeAI/tests
psychedelicious db5f016826 fix(nodes): allow batch datum items to mix ints and floats
Unfortunately we cannot do strict floats or ints.

The batch data models don't specify the value types, it instead relies on pydantic parsing. JSON doesn't differentiate between float and int, so a float `1.0` gets parsed as `1` in python.

As a result, we _must_ accept mixed floats and ints for BatchDatum.items.

Tests and validation updated to handle this.

Maybe we should update the BatchDatum model to have a `type` field? Then we could parse as float or int, depending on the inputs...
2025-01-17 12:19:04 +11:00
..
app tests: fix test_model_install.py 2025-01-03 11:21:23 -05:00
backend Add keep_ram_copy_of_weights config option. 2025-01-16 15:35:25 +00:00
fixtures test: clean up & fix tests 2024-03-01 10:42:33 +11:00
inpainting Rename default schedulers across the app 2023-05-12 03:44:20 +12:00
test_model_manager prevent vae: '' from crashing model 2023-08-10 17:33:04 -04:00
test_model_probe tests: add test for probing diffusers model variant type 2024-04-23 07:32:53 -04:00
__init__.py parent 9eed1919c2 2023-02-24 18:57:02 -08:00
conftest.py fix tests 2024-08-09 16:31:42 -04:00
dev_prompts.txt Added linux to the workflows (#463) 2022-09-16 17:46:57 -04:00
legacy_tests.sh Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
test_config.py tests: reset config changes in test_deny_nodes when finished testing 2024-10-31 15:22:14 +11:00
test_docs.py update config docstring 2024-08-08 15:20:43 -04:00
test_graph_execution_state.py Apply ruff rule to disallow all relative imports. 2024-07-04 09:35:37 -04:00
test_invocation_cache_memory.py tests: add invocation cache tests 2024-03-06 08:14:12 -05:00
test_item_storage_memory.py chore(item-storage): improve types 2024-02-03 07:34:06 -05:00
test_model_hash.py feat(mm): rename "blake3" to "blake3_multi" 2024-03-22 08:26:36 +11:00
test_model_probe.py ruff format 2024-12-17 07:28:45 -05:00
test_model_search.py tidy(mm): ModelSearch cleanup 2024-03-10 12:09:47 +11:00
test_node_graph.py tests: add invoke method & output annotation tests 2024-10-31 16:21:07 +11:00
test_nodes.py (pytest) mock emit_invocation_progress on events service 2024-11-15 05:49:05 +11:00
test_object_serializer_disk.py tests: add object serializer test for dangling folders 2024-04-23 17:12:14 +10:00
test_path.py chore: ruff 2024-03-01 10:42:33 +11:00
test_profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
test_session_queue.py fix(nodes): allow batch datum items to mix ints and floats 2025-01-17 12:19:04 +11:00
test_sqlite_migrator.py feat(db): back up database before running migrations 2024-04-02 09:10:53 +11:00
validate_pr_prompt.txt fixes to env parsing, textual inversion & help text 2023-05-18 10:48:23 -04:00