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 reorg #153

Merged
merged 5 commits into from
May 23, 2018
Merged

Tests reorg #153

merged 5 commits into from
May 23, 2018

Conversation

goodboy
Copy link
Contributor

@goodboy goodboy commented May 22, 2018

Addresses #100 as well as attempts to bring a little more consistency and appropriate organization to our test module's content. See the commit msg in 4c19d8d for the details on the two module (re)namings.
This should at the least make it easier to find tests related to specific components and help us avoid duplication (of which I still think there is some but fixing that will come later).

I also moved a bunch of tests from the test_method_ordering (now test_hookcaller) into test_pluginmanager as they really are just tests of the public API for both tracing and the setuptools entry point loading stuff.

I added a specific module for deprecation warnings tests.

There's further deprecation tests in test_pluginmanager.py now that #144 has landed.
I wasn't sure if it'd be appropriate to move these into test_deprecations now or if that module should be strictly for warnings tests.

test_details is also something we might want to rename as it doesn't convey much meaning.

Tyler Goodlet added 4 commits May 22, 2018 17:30
test_hookcaller.py:
 We're not testing "method ordering" per say, we're testing the
 general internal API and behaviour of the `_HookCaller`; its
 method ordering is the majority of its purpose, yes. There's also
 a bunch of tests in this module that don't belong.

test_invocations.py:
 You can't really test the "hookrelay" (unless you're trying to test
 `getattr`). Really this module is testing the different types of hook
 "invocations" in terms of API and execution behaviour.

Resolves pytest-dev#100
@goodboy
Copy link
Contributor Author

goodboy commented May 23, 2018

@RonnyPfannschmidt @nicoddemus this is ready for viewing I believe.
I'd like to get this in before introducing yet another deprecation for #86.

@nicoddemus nicoddemus merged commit 76232fa into pytest-dev:master May 23, 2018
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.

3 participants