Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 =====================================================================