Skip to content

Commit

Permalink
Merge pull request #1140 from JohnSnowLabs/UnitTesting/add-new-unit-t…
Browse files Browse the repository at this point in the history
…ests-to-enhance-test-coverage-and-reliability

Unit testing/add new unit tests to enhance test coverage and reliability
  • Loading branch information
chakravarthik27 authored Nov 18, 2024
2 parents b11fe41 + 888ef09 commit 9eaf24d
Show file tree
Hide file tree
Showing 7 changed files with 202 additions and 51,364 deletions.
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

0 comments on commit 9eaf24d

Please sign in to comment.