eranheres / ultra_type

0 stars 0 forks source link

Style fixes for test_language.py to adhere to PEP8 #41

Open sweep-mine[bot] opened 11 months ago

sweep-mine[bot] commented 11 months ago

Description

This pull request includes style fixes for test_language.py to adhere to PEP8 standards.

Summary

Fixes #40.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

sweep-mine[bot] commented 11 months ago

Sandbox Executions

sweep-mine[bot] commented 11 months ago

Apply Sweep Rules to your PR?

sweep-mine[bot] commented 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 =========================
sweep-mine[bot] commented 11 months ago

🚀 Wrote Changes

Done.