-
Notifications
You must be signed in to change notification settings - Fork 63
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
Deprecation of a few methods #1025
Conversation
Test Results 2 files - 14 2 suites - 14 1m 34s ⏱️ - 3h 25m 23s Results for commit ff0b26f. ± Comparison against base commit 6782d2f. This pull request removes 689 and adds 480 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
neptune/new/internal/init/run.py
Outdated
@@ -159,34 +159,34 @@ def init_run( | |||
>>> import neptune.new as neptune | |||
|
|||
>>> # minimal invoke | |||
... run = neptune.init() | |||
... run = neptune.init_run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: These examples are reworked by PR #1015 and the change from init
to init_run
is reflected there already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Let me know once it will be merged so I'll be able to easily get rid of it during rebasing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just the one comment about my conflicting PR.
697331f
to
a545061
Compare
|
||
def test_passing_deprecated_parameter_as_none(self): | ||
# pylint: disable=unexpected-keyword-arg | ||
# pylint: disable=missing-kwoa | ||
self.assertIsNone(fun(deprecated_param=None)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, probably missed that and it should be replaced with assert value is None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
55ab5cf
to
a243b82
Compare
35560bc
to
5f506da
Compare
bc6c0f0
to
160b218
Compare
warnings.simplefilter("always", category=NeptuneDeprecationWarning) | ||
|
||
|
||
warned_once = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make it set
instead of dict
# test collision | ||
with self.assertRaises(NeptuneParametersCollision): | ||
fun(new_param=None, deprecated_param=None) | ||
def test_deprecated_func_with_alternative(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add test for warning once ant we're done ;)
No description provided.