Make file paths in tests agnostic to execution source path #2701#2727
Conversation
…ryptionError (python-telegram-bot#2621) * move telegramdecryptionerror to error.py * Change error class name
…t#2612) * feat: add docs about docs * fix: improve looks * fix: make link work * fix: this looks better * Improved markdown, updated link * Less justifying Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
* Fix incomplete type annotations for CallbackContext Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
* Feat: Custom pytest marker Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
* Make basepersistence methods abstractmethod Signed-off-by: starry69 <starry369126@outlook.com> Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
…m-bot#2634) Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com> Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com>
# Conflicts: # telegram/bot.py # telegram/ext/callbackcontext.py # telegram/ext/dispatcher.py # telegram/ext/extbot.py # telegram/ext/jobqueue.py # tests/conftest.py # tests/test_bot.py
…ass_data_file fixture
…unction to conftest, replaced usages of paths with the above wherever possible
…n_source_path_#2701 # Conflicts: # tests/test_bot.py # tests/test_files.py # tests/test_warnings.py
|
tried all the ways the instructions provide to link this pr to the issue - commit with keyword and issue number in message, and also in the description. doesn't link... |
|
@eldbud Not your fault, it only works when the base branch is master apparently, we'll manually link and close it |
|
Overall looks good - nice contribution! I take it that you actually tested running the tests from different working directories? |
indeed :) |
i just rechecked my reply, and i see i do have a problem with |
ok, fixed. pr is ready for merge unless there are any issues i need to attend to. @Bibo-Joshi seems i have no authorization to request review ("reviewers" on the right side pane is empty, and clicking it does nothing) |
|
Thanks for the nice contribution :) |
PROJECT_ROOT_PATHandTEST_DATA_PATHconstants in conftestdata_filefunction in conftestdata_filefunctionresolves #2701