Closed sweep-mine[bot] closed 9 months ago
tests/test_language.py
. ā
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ā (`2`)************* Module tests.test_language tests/test_language.py:41:42: E0001: Parsing failed: 'unindent does not match any outer indentation level (, line 41)' (syntax-error)
tests/test_language.py
. ā
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ā (`2`)************* Module tests.test_language tests/test_language.py:90:19: E1120: No value for argument 'language' in constructor call (no-value-for-parameter) tests/test_language.py:102:19: E1120: No value for argument 'language' in constructor call (no-value-for-parameter) tests/test_language.py:135:19: E1120: No value for argument 'language' in constructor call (no-value-for-parameter)
tests/test_language.py
. ā
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ā(nothing was outputted)
tests/test_language.py
. ā
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ā(nothing was outputted)
tests/test_language.py
. ā
Sandbox logs for
poetry run pylint -E **/*.py
1/1 ā(nothing was outputted)
Description
This pull request addresses issues with unit tests for unsupported language and empty words list.
Summary
tests/test_language.py
to handle unsupported language and empty words list scenarios.test_load_words_english
andtest_load_words_hebrew
to use instance of Language and assert the returned words.test_load_words_non_string_language
andtest_load_words_special_characters_language
to handle non-string and special characters language scenarios.test_get_word
andtest_get_word_when_words_is_empty
to use mocks and assert the expected behavior.Fixes #23.
š Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!š” To get Sweep to edit this pull request, you can: