Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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 Actualt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

Hello please help my to solve this with steps and explanation:

Answered: 1 week ago

Question

Define the goals of persuasive speaking

Answered: 1 week ago