Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(conftest): make @pytest.mark.bashcomp(cwd=path) relative from test/fixtures #548

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

akinomyoga
Copy link
Collaborator

In commit 2ed0e85, I have added @pytest.mark.bashcomp(cwd=path) along with @pytest.mark.bashcomp(temp_cwd=True), but this has never been used. Now I'd like to use @pytest.mark.bashcomp(cwd=path) in test_make.py in the updated #546 to specify the directory that contains a static Makefile for testing #544. I noticed that it is unuseful that cwd is the relative path to the current working directory of pytest so would like to change to interpret it as the relative path to the test/fixtures.

@akinomyoga
Copy link
Collaborator Author

This is blocking #546, so I'd like to have this PR reviewed first.

@akinomyoga
Copy link
Collaborator Author

I have updated the commit message. @scop Could you check this PR? I need to have this PR finished before finalizing #546.

@pytest.mark.bashcomp(cwd=path), which has been recently added in
commit 2ed0e85, had interpreted "cwd" as the relative path to the
pytest's working directory.  Now this commit makes "cwd" the relative
path to the directory "test/fixtures".

Note that @pytest.mark.bashcomp(cwd=path) has never been used so far
since this is added just for completeness when
@pytest.mark.bashcomp(temp_cwd=True) was supported.  This will be used
for the subsequent commits for the completion of "make".
Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍, sorry about the delay, merging.

@scop scop merged commit d599293 into scop:master Aug 27, 2021
@akinomyoga akinomyoga deleted the make-bashcomp-cwd-relative branch August 27, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants