-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Move all tests to be pytest's #4199
Conversation
Please remove all commits related to |
66a4117
to
2388b21
Compare
@dalthviz, is this ready? |
@ccordoba12 I think that there are some more tests to be moved in |
@dalthviz, please remove all real tests (i.e. the ones that contain That would be the last thing to do before merging this one. Great work, as always!! |
@dalthviz, is this one ready? |
@ccordoba12 yes I think so 👍 |
def test_fallback_plugin(): | ||
"""Test the fallback plugin.""" | ||
p = FallbackPlugin() | ||
print(FALLBACK_PLUGIN_FILE) |
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.
Remove print
get_preferred_submodules) | ||
from spyder.py3compat import PY3 | ||
|
||
def test_codeanalysis(): |
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.
Change this to test_modulecompletion
if not len(args) == 2: | ||
return | ||
plugin = PluginServer(*args) | ||
qtbot.addWidget(plugin) |
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.
plugin_server
is not a Qt widget. Please fix this.
# Local imports | ||
from spyder.utils.introspection.utils import CodeInfo | ||
|
||
def test_codeanalysis(): |
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.
Change this to test_codeinfo
|
||
def test_dochelpers(): | ||
"""Test dochelpers.""" | ||
class Test(object): |
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.
Please move this class out of the test definition
'in descending order.', | ||
'name': 'sorted'} | ||
assert getargtxt(sorted) == None | ||
assert isdefined('numpy.take', force_import=True) == True |
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.
There's no need to assert ... == True
. You can change this simply to assert ...
'name': 'sorted'} | ||
assert getargtxt(sorted) == None | ||
assert isdefined('numpy.take', force_import=True) == True | ||
assert isdefined('__import__') == True |
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.
Remove True
assert getargtxt(sorted) == None | ||
assert isdefined('numpy.take', force_import=True) == True | ||
assert isdefined('__import__') == True | ||
assert isdefined('.keys', force_import=True) == False |
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.
assert not ...
and remove False
The failure in CircleCI is caused by me. Don't worry about it :-) |
get_preferred_submodules) | ||
from spyder.py3compat import PY3 | ||
|
||
def test_codeanalysis(): |
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.
test_codeanalysis
-> test_module_completion
Please merge with |
Fixes #3195