Question 18
You are given a project with three files: conftest.py, test_multiples_of_3_and_6.py, and test_multiples_of_13.py. The purpose of the tests is to verify if numbers generated by each function are divisible by 39. However, there is a setup issue in this project.
conftest.pycontains a fixture that provides test data.test_multiples_of_3_and_6.pyhas two functions: one checks divisibility by 3, and the other by 6.test_multiples_of_13.pycontains a function to check divisibility by 13.
Here is the content of each file:
conftest.py
import pytest
@pytest.fixturedef divisible_by_39(): return 39 # Fixture providing the number to be testedtest_multiples_of_3_and_6.py
import pytest
def test_divisible_by_3(divisible_by_39): assert divisible_by_39 % 3 == 0 # Checks if divisible by 3
def test_divisible_by_6(divisible_by_39): assert divisible_by_39 % 6 == 0 # Checks if divisible by 6test_multiples_of_13.py
import pytest
def test_divisible_by_13(divisible_by_39): assert divisible_by_39 % 13 == 0 # Checks if divisible by 13When you run pytest -k divisible , which of the following is true?