On Tuesday, May 12, 2015 at 2:05:21 PM UTC+8, Walty Yeung wrote:
>
>
>
> On Tuesday, May 12, 2015 at 12:53:14 AM UTC+8, RjOllos wrote:
>>
>>
>>
>> On Saturday, May 9, 2015 at 11:21:56 PM UTC-7, Walty Yeung wrote:
>>>
>>> and my question is, is the bite-sized tasks (
>>> http://trac.edgewall.org/query?status=new&status=assigned&status=reopened&keywords=~bitesized&group=component&order=priority)
>>>  
>>> still the optimal entry point of contribution now? I asked only  because I 
>>> saw most of the tickets there are actually pretty old, and I am not sure if 
>>> they are actually outdated now, however, I don't mind to start with the 
>>> minor changes at all.
>>>
>>
>> In case you are looking for specific suggestions on where to start, 
>> #11937 should be fairly tractable:
>>
>> http://trac.edgewall.org/ticket/11937
>>
>> - Ryan
>>
>
>
> Hi Ryan,
>
> Thanks a lot for your great patience and detailed explanation! 
>
> I would start with #11937 as my first try :)
>
>
> have a nice day
> walty 
>


Hi Ryan,

I just finished the code, and briefly tried it in my development tracd 
environment.

And then I tried to write a functional test case for that, however I got 
stuck when trying to run the functional test. I think I might still post 
the question here, so it might help others in the future.

This is my functional test case:


-----------------------------


Index: trac/wiki/tests/functional.py

===================================================================

--- trac/wiki/tests/functional.py (revision 14055)

+++ trac/wiki/tests/functional.py (working copy)

@@ -495,6 +495,14 @@

         tc.find(r"<h1>Trac Error</h1>")

         tc.find('No version "" for Wiki page "WikiStart')

 

+class RegressionTestTicket11937(FunctionalTwillTestCaseSetup):

+    def runTest(self):

+        """Test for regression of http://trac.edgewall.org/ticket/11937

+        wiki suggestion should be based on 1 unit editing distance. 

+        For example, visit of /wiki/CameCase should suggest /wiki/CamelCase

+        """

+        tc.go(self._tester.url + '/wiki/CameCase')

+        tc.find('CamelCase')
 
-----------------------------


I have installed twill, lxml and cssselect, but when I run 'python -m 
trac.wiki.tests.functional', I got the following error:


-----------------------------

(tracDev)waltys-MacBook-Air:/app/tracDev/trac-trunk$python -m 
trac.wiki.tests.functional

Traceback (most recent call last):

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py",
 
line 162, in _run_module_as_main

    "__main__", fname, loader, pkg_name)

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py",
 
line 72, in _run_code

    exec code in run_globals

  File "/app/tracDev/trac-trunk/trac/wiki/tests/functional.py", line 542, 
in <module>

    unittest.main(defaultTest='suite')

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py",
 
line 95, in __init__

    self.runTests()

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py",
 
line 232, in runTests

    self.result = testRunner.run(self.test)

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/runner.py",
 
line 151, in run

    test(result)

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py",
 
line 70, in __call__

    return self.run(*args, **kwds)

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py",
 
line 108, in run

    test(result)

  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py",
 
line 70, in __call__

    return self.run(*args, **kwds)

  File "trac/test.py", line 158, in run

    self.setUp()

  File "trac/tests/functional/__init__.py", line 144, in setUp

    self._testenv.start()

  File "trac/tests/functional/testenv.py", line 274, in start

    tc.go(self.url)

  File 
"/app/ENV/tracDev/lib/python2.7/site-packages/twill-1.8.0-py2.7.egg/twill/commands.py",
 
line 109, in go

    browser.go(url)

  File 
"/app/ENV/tracDev/lib/python2.7/site-packages/twill-1.8.0-py2.7.egg/twill/browser.py",
 
line 91, in go

    raise TwillException("cannot go to '%s'" % (url,))

twill.errors.TwillException: cannot go to 'http://127.0.0.1:8149'

(tracDev)waltys-MacBook-Air:/app/tracDev/trac-trunk$

-----------------------------

I did not Google out much information, and I tried to install the latest 
twill, as suggested here (http://trac.edgewall.org/ticket/11642), but still 
no luck.

Any idea about this please?

thanks

have a nice day
walty

 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To post to this group, send email to trac-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to