Replies: 1 comment 2 replies
-
Yes, correct, i also think that using relative paths is better, expecially because i use relative paths everywhere else (i.e: in Readme.md). I have switched to relative paths for the unit tests of the instance, taxonomy and linkbase modules in d845909. I still have to put in some work into the test_uri_resolver unittest. Initially i struggled a lot because i wanted to create one fancy method that resolved both relative url's and paths. It probably would have been much easier if i had just created one function for url's and one for file paths... |
Beta Was this translation helpful? Give feedback.
-
I believe it would be better to use relative paths in testing instead of absolute paths. The absolute path depends not on the file itself, but from where you are running it.
The usual way of running tests is from the root directory of the proyect, and because of using absolute paths in os.path.abspath it fails. What do you think about changing it?
Beta Was this translation helpful? Give feedback.
All reactions