Skip to content
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

Unit testing/add new unit tests to enhance test coverage and reliability #1140

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion langtest/transform/image/robustness.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def transform(


class ImageColor(BaseRobustness):
3
alias_name = "image_color"
supported_tasks = ["visualqa"]

Expand Down
97 changes: 96 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pyproject-flake8 = "<6.0.0"
pre-commit = "^3.3.3"
pydocstyle = "^6.3.0"
ipykernel = "^6.29.5"
pytest-cov = "^6.0.0"

[tool.taskipy.tasks]
test = "pytest tests/* -v --disable-warnings"
Expand Down
9 changes: 9 additions & 0 deletions tests/fixtures/augmenter_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
type: proportion
style: new
tests:
robustness:
uppercase:
max_proportion: 0.2
lowercase:
max_proportion: 0.2
Loading
Loading