Dá esse erro quando tento rodar os testes do test_Usuario.py
C:\Users\Meg\Documents\testes-python-projeto-inicial\venv\Scripts\python.exe "C:\Users\Meg\Nova pasta\PyCharm Community Edition 2020.3\plugins\python-ce\helpers\pycharm_jb_pytest_runner.py" --path C:/Users/Meg/Documents/testes-python-projeto-inicial/tests/test_Usuario.py Testing started at 16:03 ... Launching pytest with arguments C:/Users/Meg/Documents/testes-python-projeto-inicial/tests/test_Usuario.py in C:\Users\Meg\Documents\testes-python-projeto-inicial\tests
============================= test session starts ============================= platform win32 -- Python 3.9.1, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- C:\Users\Meg\Documents\testes-python-projeto-inicial\venv\Scripts\python.exe cachedir: .pytest_cache rootdir: C:\Users\Meg\Documents\testes-python-projeto-inicial\tests collecting ... test_Usuario.py:None (test_Usuario.py) test_Usuario.py:1: in from src.leilao.dominio import Usuario, Leilao ..\src\leilao\dominio.py:1: in class Usuario: ..\src\leilao\dominio.py:11: in Usuario lance = Lance(self, valor) E NameError: name 'Lance' is not defined collected 0 items / 1 error
=================================== ERRORS ==================================== _ ERROR collecting testUsuario.py __ testUsuario.py:1: in from src.leilao.dominio import Usuario, Leilao ..\src\leilao\dominio.py:1: in class Usuario: ..\src\leilao\dominio.py:11: in Usuario lance = Lance(self, valor) E NameError: name 'Lance' is not defined =========================== short test summary info =========================== ERROR test_Usuario.py - NameError: name 'Lance' is not defined !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ============================== 1 error in 1.03s ===============================
Process finished with exit code 2
Assertion failed
Assertion failed
Tais erros são acusados no dominio.py: Unresolved reference 'Lance' Unresolved reference 'self' Unresolved reference 'valor' Unresolved reference 'leilao' Unresolved reference 'self' Unresolved reference 'valor'
no entanto tais classes estão presentes no código, como corrigir isso? desde já obrigado!