Fixture to read the XML file content
()
| 34 | |
| 35 | @pytest.fixture |
| 36 | def xml_content(): |
| 37 | """ |
| 38 | Fixture to read the XML file content |
| 39 | """ |
| 40 | FILE_NAME = "inputs/books.xml" |
| 41 | curr_dir = os.path.dirname(os.path.realpath(__file__)) |
| 42 | file_path = os.path.join(curr_dir, FILE_NAME) |
| 43 | |
| 44 | with open(file_path, "r", encoding="utf-8") as file: |
| 45 | return file.read() |
| 46 | |
| 47 | |
| 48 | # ************************************************ |
nothing calls this directly
no outgoing calls
no test coverage detected