Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how to make the std.out == x not an error. i think because it needs to be converted to a string. dev for nick [C:UsersBentePycharm
how to make the std.out == x not an error. i think because it needs to be converted to a string.
dev for nick [C:\Users\Bente\Pycharm Projects\Software dev for nick] - ... \section 1 \lesson 1\task1\tests fe task.py fe_init_.py te test_task.py * ta Helloworld.answer.py 1 import pytest import sys N w class TestClass: o def test_one(self): x = "hello world assert sys.stdout == x 00 6 X Tests failed: 1 of 1 test - 1 ms Launching pytest with arguments C:/Users/Bente/PycharmProjects/Software dev for nick/s EEEEEEEEE========= ============================= test session starts ======= platform win32 -- Python 3.7.3, pytest-5.3.3, py-1.8.1, pluggy-0.13.1 -- C:\Users\Bent cachedir: pytest_cache rootdir: C:\Users\Bente PycharmProjects \Software dev for nick\section1\lesson1\task1\te collecting ... collected 1 item test_task.py::TestClass::test_one FAILED [100%] test task.py:4 (TestClass.test_one) <_pytest.capture. encodedfile object at ox0000019310737128> != hello world! o e BE Code Help 3 Software dev for nick ICAUserBente Pycharm Projects Software dev for nicks section tesson Task Tsk.py - PyCharm 0 - task py _init_py test_task.py Helloworld.answer py 1 W Print my name is nick print("hello world") Tack Description Follow the instruc Hint - Hints can be adds Tab answer.py aml cache I Check test task.py 4 (TestClas pytest capture.Encode Expected hello wor ActualtStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started