Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Things done :
(In
tests/base directory)test_casesfolder which contains some cases to mimic project structuresptwmight faceTest_ini_path_collected.test_basic- Testpytest.inilocation reported by plugin is correct, in the most basic situationTest_ini_path_collected.test_from_inner_dir- Testpytest.inilocation, whenpwdis one level deeper than config file dir.Test_merge_config.test_works_alone- Inmerge_configfunc, check ini config only w/o cmdline args works.Test_merge_config.test_works_with_cmdline- Check ini config with cmdline args works.Test_merge_config.test_works_with_cmdline_precedence- Check ini config with cmdline args works, with cmdline precedenceTest_merge_config.test_works_wo_ini- Check cmdline args works, w/o config file present.Test_merge_config.test_works_wo_pytest_watch_section- Check cmdline args + (pytest.iniwithout[pytest-watch]section) works.Test_merge_config.test_works_directories_ini_option- Check ini config withdirectoriesoption works, related to Allow setting <directories> argument from pytest.ini #41 . It is marked for xfail, but should pass later once it is resolved.I have put on a experimental xfail condition for
test_works_directories_ini_optiontest, which checks if the #41 is actually still open and if yes, then xfail. Although this probably should be removed finally, it seems useful to me as a reminder in the interim period as long as the bug is not fixed.Helpers:
patched_chdir- Just like chdir, but can be used inwith, sets back the old path at exit. Useful for moving around and copying files around.create_temp_case- Copy a test_case folder to a tmpdir and return the location of the copied folder.is_github_issue_open- Returns if a gh issue is open, useful for xfail condition.