cai/tests
Ameer Pornillos 5d892a9267 Added additional prompt injections PoCs 15 and 16 (#276)
* Added prompt injections PoCs

* Mitigate PoCs 15 and 16

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

---------

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
Co-authored-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-10-08 16:23:59 +02:00
..
agents Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
cli Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
commands Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
core Fix tests 2025-06-18 10:55:31 +02:00
mcp Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
others Fix pretty print 2025-05-08 09:31:39 +02:00
tools Added additional prompt injections PoCs 15 and 16 (#276) 2025-10-08 16:23:59 +02:00
tracing fix some test 2025-04-11 08:04:19 +02:00
voice fix test 2025-04-11 09:34:06 +02:00
README.md Pretty print result classes 2025-03-17 11:11:39 -04:00
__init__.py Initial commit 2025-03-11 09:42:28 -07:00
conftest.py fix some test 2025-04-11 08:04:19 +02:00
conftest_pricing.py add unit tests for pricing 2025-05-23 15:11:28 +02:00
fake_model.py Fix tests 2025-06-18 10:55:31 +02:00
helpers.py fix mcp test 2025-04-11 08:24:26 +02:00
test_cli_print_deduplication.py Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
test_compact_command.py Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
test_pricing.py Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
test_unified_pattern.py Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
testing_processor.py CLI responding, but only to proprietary models 2025-03-28 09:48:16 +01:00

README.md

Tests

Before running any tests, make sure you have uv installed (and ideally run make sync after).

Running tests

make tests

Snapshots

We use inline-snapshots for some tests. If your code adds new snapshot tests or breaks existing ones, you can fix/create them. After fixing/creating snapshots, run make tests again to verify the tests pass.

Fixing snapshots

make snapshots-fix

Creating snapshots

make snapshots-update