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

Update test_app.py #2

Open
wants to merge 1 commit into
base: homeworks-new
Choose a base branch
from
Open

Conversation

bojika
Copy link

@bojika bojika commented Dec 28, 2021

bojika@enigma ~/PycharmProjects/Otus-Python-Developer-Basic (main)
$ pytest testing/test_homework_03 -s -vv
=================================================================== test session starts ===================================================================
platform win32 -- Python 3.9.6, pytest-6.2.3, py-1.11.0, pluggy-0.13.1 -- c:\users\aalexeev\pycharmprojects\otus-python-developer-basic\venv\scripts\python.
exe
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmu
p_iterations=100000)
rootdir: C:\Users\aalexeev\PycharmProjects\Otus-Python-Developer-Basic
plugins: anyio-3.4.0, Faker-8.1.2, asyncio-0.15.1, benchmark-3.4.1
collected 0 items / 1 error

========================================================================= ERRORS ==========================================================================
__________________________________________________ ERROR collecting testing/test_homework_03/test_app.py __________________________________________________
testing\test_homework_03\test_app.py:16: in
if not (dockerfile_path.is_file() and len(dockerfile_path.read_text().splitlines()) > 5):
....\AppData\Local\Programs\Python\Python39\lib\pathlib.py:1257: in read_text
return f.read()
....\AppData\Local\Programs\Python\Python39\lib\encodings\cp1251.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1423: character maps to
================================================================= short test summary info =================================================================
ERROR testing/test_homework_03/test_app.py - UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1423: character maps to
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================== 1 error in 1.69s =====================================================================

bojika@enigma ~/PycharmProjects/Otus-Python-Developer-Basic (main)
$ pytest testing/test_homework_03 -s -vv
=================================================================== test session starts ===================================================================
platform win32 -- Python 3.9.6, pytest-6.2.3, py-1.11.0, pluggy-0.13.1 -- c:\users\aalexeev\pycharmprojects\otus-python-developer-basic\venv\scripts\python.
exe
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmu
p_iterations=100000)
rootdir: C:\Users\aalexeev\PycharmProjects\Otus-Python-Developer-Basic
plugins: anyio-3.4.0, Faker-8.1.2, asyncio-0.15.1, benchmark-3.4.1
collected 0 items / 1 error                                                                                                                                

========================================================================= ERRORS ==========================================================================
__________________________________________________ ERROR collecting testing/test_homework_03/test_app.py __________________________________________________
testing\test_homework_03\test_app.py:16: in <module>
    if not (dockerfile_path.is_file() and len(dockerfile_path.read_text().splitlines()) > 5):
..\..\AppData\Local\Programs\Python\Python39\lib\pathlib.py:1257: in read_text
    return f.read()
..\..\AppData\Local\Programs\Python\Python39\lib\encodings\cp1251.py:23: in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E   UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1423: character maps to <undefined>
================================================================= short test summary info =================================================================
ERROR testing/test_homework_03/test_app.py - UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 1423: character maps to <undefined>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================== 1 error in 1.69s =====================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant