fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

Pathlib usage #521

Closed christophe-david closed 2 months ago

christophe-david commented 2 months ago

This PR begins the suppression of os.path usage in favor of pathlib.

In this first step, pathlib is now used in unit tests. When Path objects are not accepted by tested code, the as_posix() method is used.

Looking for as_posix() in test_*.py files will allow to spot parts of API that are not pathlib-compliant.