-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unwinding cases in Test_set_default_dataset_id and having better test separation #672
Unwinding cases in Test_set_default_dataset_id and having better test separation #672
Conversation
@@ -79,6 +86,16 @@ def compute_engine_id(): | |||
connection.close() | |||
|
|||
|
|||
def _get_production_dataset_id(): |
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
@tseaver Issues remaining? |
LGTM |
Unwinding cases in Test_set_default_dataset_id and having better test separation
Let's see if Travis is all the way back on track... |
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.