Glossary: Refactoring and Clean Code
pathlib.Path
Also written: Path, __file__, HERE
Python's way to work with file paths. `Path(__file__).parent` gives the folder of the current file, so tests find data files wherever pytest is started.
Glossary: Refactoring and Clean Code
Also written: Path, __file__, HERE
Python's way to work with file paths. `Path(__file__).parent` gives the folder of the current file, so tests find data files wherever pytest is started.