How many tests are run, when below code is tested using pytest import unittest def test_sample1(): assert 3 == 3 class SampleTestClass(unittest.TestCase): def test_sample2(self): self.assertEqual(3, 3)

Questions & AnswersCategory: Programming LanguageHow many tests are run, when below code is tested using pytest import unittest def test_sample1(): assert 3 == 3 class SampleTestClass(unittest.TestCase): def test_sample2(self): self.assertEqual(3, 3)
Adam asked 2 years ago

How many tests are run, when below code is tested using pytest.

import unittest

def test_sample1():

    assert 3 == 3

class SampleTestClass(unittest.TestCase):

    def test_sample2(self):

        self.assertEqual(3, 3)

a. 1

b. 2

c. 0

d. 3