Skip to content

Commit

Permalink
Added the test to attack loader
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-ps committed Apr 16, 2024
1 parent 631cb4b commit 0c430f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 19 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,25 @@ class TestHarmfulBehaviors(TestBase):

#### 4. Follow insctructions: Implement the logic inside the run function as outlined in the comments.

#### 5. Open a PR! Submit your changes for review by opening a pull request.
#### 5. Add your attack file name to the attack loader file:
```python
from .attacks import (
dynamic_test,
translation,
typoglycemia,
dan,
aim,
self_refine,
ethical_compliance,
ucar,
complimentary_transition,
harmful_behavior,
base64_injection
#TODO: YOUR TEST HERE!
)
```

#### 6. Open a PR! Submit your changes for review by opening a pull request.

#### That’s all it takes to contribute a new test to the PS-Fuzz project!

Expand Down
1 change: 1 addition & 0 deletions ps_fuzz/attack_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
ucar,
complimentary_transition,
harmful_behavior,
base64_injection
)

0 comments on commit 0c430f3

Please sign in to comment.