-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sweep Rules] Add Unit Tests #36
Conversation
Rollback Files For Sweep
|
Sandbox Executions
Run `test/test_tomato_attack.py` through the sandbox.
Run `test/test_word_embedding_attack.py` through the sandbox.
Run `test/test_check_comp.py` through the sandbox.
|
The command: #1 [internal] load .dockerignore #2 [internal] load build definition from Dockerfile #3 [internal] load metadata for docker.io/library/python:3.10-slim #4 [auth] library/python:pull token for registry-1.docker.io #3 [internal] load metadata for docker.io/library/python:3.10-slim #5 [internal] load build context #6 [base 1/1] FROM docker.io/library/python:3.10-slim@sha256:3c9182c6498d7de6044be04fb1785ba3a04f953d515d45e5007e8be1c15fdd34 #7 [python-deps 1/8] COPY Pipfile Pipfile.lock /app/ #8 [python-deps 2/8] COPY . /app #9 [python-deps 3/8] WORKDIR /app #10 [python-deps 4/8] RUN pipenv install --deploy
|
🚀 Wrote ChangesDone. |
PR Feedback (click)
I created this PR to address this rule:
"Code should always include unit tests."
Description
This PR adds unit tests to the PullingAce library to ensure the correctness of its functionality. The README.md file primarily contains instructions for using the library, so the tests have been added to the relevant Python scripts in the
pulling_ace
directory.Summary of Changes
test_tomato_attack.py
to test thepulling_ace.attacks.tomato_attack
module.test_word_embedding_attack.py
to test thepulling_ace.attacks.word_embedding_attack
module.test_check_comp.py
to test thepulling_ace.utils.check_comp
module.test_subprocessor.py
to test thepulling_ace.utils.subprocessor
module.These tests cover the important functionality of the PullingAce library and ensure its robustness.