Hi Dave,
I need some help in understanding an error related to test cases.
I was trying to write a test case to check the '/neighborhood' route in
Allura/allura/tests/functional/test_root.py as below.
def test_neighborhood(self):
> response = self.app.get('/neighborhood/')
But I get the following error, when I run the above test case.
Traceback (most recent call last):
> File
> "/home/deshani/env-allura/local/lib/python2.7/site-packages/nose/case.py",
> line 197, in runTest
> self.test(*self.arg)
> File
> "/home/deshani/src/allura/Allura/allura/tests/functional/test_root.py",
> line 58, in test_neighborhood
> response = self.app.get('/neighborhood/')
> File "/home/deshani/src/allura/AlluraTest/alluratest/validation.py",
> line 322, in get
> resp = super(ValidatingTestApp, self).get(*args, **kw)
> File "/home/deshani/src/allura/AlluraTest/alluratest/validation.py",
> line 269, in get
> return super(PostParamCheckingTestApp, self).get(*args, **kwargs)
> File
> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
> line 756, in get
> expect_errors=expect_errors)
> File
> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
> line 1118, in do_request
> self._check_status(status, res)
> File
> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
> line 1154, in _check_status
> res)
> AppError: Bad response: 404 Not Found (not 200 OK or 3xx redirect for
> http://localhost/neighborhood/)
Can you help me to understand why this error comes up?
Regards!
On Wed, May 30, 2018 at 8:37 PM Deshani Geethika <[email protected]>
wrote:
> Hi Dave,
>
> I've added the first merge request for Personal Dashboard. Please review
> it and let me know any improvements.
>
> Merge Request:
> https://forge-allura.apache.org/p/allura/git/merge-requests/255/
>
> Regards!
>
> On Wed, May 30, 2018 at 12:14 AM Dave Brondsema <[email protected]>
> wrote:
>
>> On 5/28/18 4:12 AM, Deshani Geethika wrote:
>> > Hi Dave,
>> >
>> > During last week I focused on learning frameworks and basics related to
>> > Allura and now I’m ready to add the first merge request of Personal
>> > Dashboard. When adding the merge request, should it be added to the
>> master
>> > branch of the remote?
>> >
>> > Regards!
>> >
>>
>> I would recommend making a new branch for each task you work on. That
>> way you
>> can have multiple going at the same time, if they are not dependent on
>> each other.
>>
>> That will also let you keep master in sync with upstream master, and not
>> have
>> local changes in it.
>>
>>
>> --
>> Dave Brondsema : [email protected]
>> http://www.brondsema.net : personal
>> http://www.splike.com : programming
>> <><
>>
>
>
> --
> *Deshani Geethika*
> Undergraduate at Department of Computer Science and Engineering
> Faculty of Engineering - University of Moratuwa Sri Lanka
> LinkedIn <https://www.linkedin.com/in/deshanigeethika/> | GitHub
> <https://github.com/deshanigtk> | Mobile - +94776383034
>
>
--
*Deshani Geethika*
Undergraduate at Department of Computer Science and Engineering
Faculty of Engineering - University of Moratuwa Sri Lanka
LinkedIn <https://www.linkedin.com/in/deshanigeethika/> | GitHub
<https://github.com/deshanigtk> | Mobile - +94776383034