pytest-sugar icon indicating copy to clipboard operation
pytest-sugar copied to clipboard

progress bar is not visible as expected.

Open verilogtester opened this issue 2 years ago • 1 comments

Running tests using pytest, and getting these special symbols� in the test results displayed on the terminal. any idea how to get rid of these symbols

Running test on the Linux terminal with the following configuration. % echo $TERM xterm-256color

Command used to run pytest

pytest test_example.py

Test file

import pytest

def test_divisible_by_3():
   assert 3 % 3 == 0

Output

lib/python3.9/site-packages/_pytest/config/__init__.py:427: PytestConfigWarning: pytest-catchlog plugin has been merged into the core, please remove it from your requirements.
  warnings.warn(
Test session starts (platform: linux, Python 3.9.7, pytest 6.2.5, pytest-sugar 0.9.4)
rootdir: PathToTest/test_infra
plugins: dash-2.0.0, catchlog-1.2.2, cov-3.0.0, forked-1.3.0, order-1.0.0, sugar-0.9.4, tap-3.3, tornado-0.8.1, xdist-2.4.0, teamcity-messages-1.29
collecting ... 
 test_1.py ���                                                                                                                                     100% ������������������������������

Results (0.04s):
       1 passed

Let me know if you need more details here.

Thank you

verilogtester avatar Jul 07 '22 18:07 verilogtester

I had the same issue when I was using Anaconda Prompt. When I moved to the Windows Terminal the problem was gone. The difference is that Windows Terminal support much much more UTF-8 characters. � symbols on the left side are Check Mark or Vector or Cross Product . � symbols on the right side are a Block Elements.

So if you want to get rid of these symbols, you have to find a terminal which support these symbols.

ToTamire avatar Jul 25 '22 18:07 ToTamire