Jayakrishnan added the comment:
The aimed versions for this unit test frame work is python 3.3, 3.4. So as Nick
said, unittest.mock may have no issues on this.
As you said 3rd party modules seems not a better way.But the link you provided
( https://pypi.python.org/pypi/mock ) says
Jayakrishnan added the comment:
There is a need of a proper design in whether to put tests in test sub
directory or to create idlelib/test directory.
For my GSoc proposal initial draft, I suggested to start with
Put tests in test/test_idle directory (like test/test_email would be the best
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework initiated in
http://bugs.python.org/issue15392.
A small unit test for IDLE Delegator.py module. This patch introduces a test
module named test_delegator.py inside Lib/idlelib/idle_test, considering the
points README
Changes by R. Jayakrishnan :
--
versions: +Python 2.7, Python 3.3
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bugs-list mailin
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18103>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18104>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
The "from test.resource import requires" give me errors saying no module named
resource in test (Am I missing anything?)
For the moment I use "from test.support import requires" as in
test_delegator1.patch
.
from test.support impo
Changes by R. Jayakrishnan :
Removed file: http://bugs.python.org/file30626/test_delegator1.patch
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bug
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30627/test_delegator1.patch
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bug
Changes by R. Jayakrishnan :
--
nosy: +ncoghlan
___
Python tracker
<http://bugs.python.org/issue18189>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
I wrapped requires('gui') as submitted in patch2. But this time commands
"python -m test test_idle" and with -ugui does not skip delegatortest (it runs
successfully to both).
I took Lib/test/test_tk.py as an example.
It calls runtkt
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework initiated in #15392. Writing test for
AutoExpand.py
--
components: IDLE, Tests
messages: 191795
nosy: JayKrish
priority: normal
severity: normal
status: open
title: IDLE Improvements: Unit test for
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework #15392, unit test for IdleHistory.py.
This test depends on mockText and uses the patch by Terry at issue #18365.
Because the mockText is still about to commit, first patch
http://bugs.python.org/file30865/mock_text2
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue17535>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18365>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
Now we have the mockText, So I updated my test for Idlehistory.
The submitted patch2 contains tests for two methods in Idlehistory
(history_store and History_do).
I hope the tests for history_store are done. But the history_do method tests
fails.
I explored a
R. Jayakrishnan added the comment:
Thanks Terry for "we have the option of gui tests when mocking becomes too
complicated"
I put two separate classes IdleHistoryMockTest and IdleHistoryTKTest for mock
and TK text usages and used TK Text to test IdleHistory.history_do function.
T
New submission from R. Jayakrishnan:
Following the Idle: mock Text class and test thereof created #18365
I am trying to improve the _decode function because most of the Idletests needs
the mock text and requires some more features to handle indexes.
Started improving the mockText _decode method
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30979/decodeChecklist.txt
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bug
Changes by R. Jayakrishnan :
Removed file: http://bugs.python.org/file30978/decodeTest.py
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list m
Changes by R. Jayakrishnan :
Added file: http://bugs.python.org/file30980/decodeTest.py
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list m
R. Jayakrishnan added the comment:
I am trying to improve the _decode function of mock Text class because most of
the Idletests needs the mock text and requires some more features to handle
indexes.
Created an issue IDLE:Improvements- Improving Mock_Text
http://bugs.python.org/issue18504
Changes by R. Jayakrishnan :
--
resolution: -> works for me
___
Python tracker
<http://bugs.python.org/issue18425>
___
___
Python-bugs-list mailing list
Un
Changes by R. Jayakrishnan :
--
nosy: +Todd.Rovito
___
Python tracker
<http://bugs.python.org/issue18504>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
Yes,correcting myself. I should aim indexes which actual idlelib uses. Thank
you Terry for the grammar. Fighting with the index parsing last week, and
finally came up with a level to break the index into base and modifier and
decode it along with using
New submission from R. Jayakrishnan:
This is to create an IDLE extension that would integrate PEP8 (Syntax Style
Checker https://pypi.python.org/pypi/pep8 ) into the IDLE editor window,so the
developer who is using the IDLE editor can quickly and frequently check the
PEP8 standards of the
Changes by R. Jayakrishnan :
--
nosy: +Todd.Rovito
___
Python tracker
<http://bugs.python.org/issue18704>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +philwebster
___
Python tracker
<http://bugs.python.org/issue18704>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. Jayakrishnan :
--
nosy: +JayKrish
___
Python tracker
<http://bugs.python.org/issue18583>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. Jayakrishnan added the comment:
Thanks for showing great interest on this idea.
As usual, it seems this will going to be another nice project with IDLE for me.
Better to close this issue then, and create an appropriate initiation with the
suggested points(preferring a commencement by core
R. Jayakrishnan added the comment:
I would prefer this issue concludes with a navigation to the new proposed
enhancement.
--
___
Python tracker
<http://bugs.python.org/issue18
31 matches
Mail list logo