Unwinding cases in Test_set_default_dataset_id and having better test separation#672
Merged
dhermes merged 5 commits intogoogleapis:masterfrom Feb 26, 2015
Merged
Conversation
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Also defining one-liner _get_production_dataset_id() and _get_gcd_dataset_id() methods to mirror the app_engine_id() and compute_engine_id() methods in _implicit_environ.
Also fixing unused dataset_id=None in _callFUT in Test__get_gcd_dataset_id and Test__get_gcd_dataset_id.
Also adding the relative ordering parts to Test__determine_default_dataset_id. Tests previously were mixing the logic of the 4 possible environments while the simple ordering of them in set_default_dataset_id() and now _determine_default_dataset_id(). This separates that logic and makes sure each environ helper is called in a specific order.
a09391e to
1dd6709
Compare
Contributor
Author
|
@tseaver Issues remaining? |
Contributor
|
LGTM |
dhermes
added a commit
that referenced
this pull request
Feb 26, 2015
Unwinding cases in Test_set_default_dataset_id and having better test separation
Contributor
Author
|
Let's see if Travis is all the way back on track... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
NOTE: Has #668 as diffbase
Tests previously were mixing the logic of the 4 possible environments while the simple ordering of them in
set_default_dataset_id()and now_determine_default_dataset_id().This PR separates that logic and makes sure each environ helper is called in a specific order.
In order to do this it also introduces two one-line functions
_get_production_dataset_id()and_get_gcd_dataset_id()in the implicit environ module.