Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how do i make a test that makes sure the system output is hello world. dev for nick [C:UsersBentePycharmProjectsSoftware dev for nick] - ..section1lesson1task1testst _init_-py
how do i make a test that makes sure the system output is hello world.
dev for nick [C:\Users\Bente\PycharmProjects\Software dev for nick] - ..\section1\lesson1\task1\tests\t _init_-py X fe test_task.py x A Helloworld.answer.py x e task.py x import pytest import sys 2. 3. class TestClass: def test_one(self): X = "hello world" assert sys.stdout == X Tests failed: 1 of 1 test - 1 ms Launching pytest with arguments C:/Users/Bente/PycharmProjects/Software dev for nick/s ==== 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 [100%] test_task.py::TestClass::test_one FAILED test task.py:4 (TestClass.test_one) <_pytest.capture.encodedfile object at> != hello world PEStep 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