Open sweep-mine[bot] opened 11 months ago
The command:
Run pytest
yielded the following error:
##[error]Process completed with exit code 1.
Here are the logs:
============================= test session starts ==============================
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/ultra_type/ultra_type
collected 19 items
tests/test_controller.py . [ 5%]
tests/test_database.py .. [ 15%]
tests/test_language.py .....F. [ 52%]
tests/test_model.py ........ [ 94%]
tests/test_statistics.py . [100%]
=================================== FAILURES ===================================
__________ TestLanguageLoadWords.test_load_words_unsupported_language __________
self = <tests.test_language.TestLanguageLoadWords testMethod=test_load_words_unsupported_language>
def test_load_words_unsupported_language(self):
> self.assertEqual(language.load_words(), []) # Expect an empty list
E AttributeError: module 'ultra_type.language' has no attribute 'load_words'
tests/test_language.py:56: AttributeError
=========================== short test summary info ============================
FAILED tests/test_language.py::TestLanguageLoadWords::test_load_words_unsupported_language - AttributeError: module 'ultra_type.language' has no attribute 'load_words'
========================= 1 failed, 18 passed in 0.11s =========================
Done.
Description
This pull request includes style fixes for test_language.py to adhere to PEP8 standards.
Summary
tests/test_language.py
to adhere to PEP8 style guidelinesultra_type.language
check_word_does_not_exist
andload_words_unsupported_language
Fixes #40.
🎉 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: