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

tests: remove cleanup_func #414

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Oct 15, 2019

The "vim" fixture uses a new session always.

It was added when migrating to pytest in b65f62d, but is not really
necessary. It could still be used to e.g. ensure tests are cleaning up
after themselves, but this is also not necessary really.

Adjusts existing tests, mainly with regard to handle IDs.

The "vim" fixture uses a new session always.

It was added when migrating to pytest in b65f62d, but is not really
necessary.  It could still be used to e.g. ensure tests are cleaning up
after themselves, but this is also not necessary really.

Adjusts existing tests, mainly with regard to handle IDs.
@@ -9,50 +8,6 @@
pynvim.setup_logging("test")


@pytest.fixture(autouse=True)
def cleanup_func(vim):
Copy link
Member

Choose a reason for hiding this comment

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

can we leave a stub here (with pass)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why? 😕

Copy link
Member

Choose a reason for hiding this comment

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

if I want to add setup code later it will be a pain to find out how. Stubs don't hurt anything.

Not a blocker though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stubs at least get called all the time (not really that bad, but still).
Should be discoverable through the Git history I think.
(and if you're used to pytest you would know what you need anyway)

@blueyed blueyed merged commit 9923ee3 into neovim:master Oct 18, 2019
@blueyed blueyed deleted the tests-remove-cleanup_func branch October 18, 2019 13:33
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