Sorry for the late reply here.

Cloning the git repository is the first step, but you'll need to also make
sure you've run some additional commands to do things like install
dependencies and set up a test database. We have a full guide at
https://www.notion.so/reviewboard/Getting-Started-da208d46de1d47d8b38e8b5ddcb3dd44

As far as running unit tests, the individual files are not executable. See
https://www.notion.so/reviewboard/Running-Python-Unit-Tests-0f0e44ac133e4b549fbcd261d3efe4e3
for info on running the test suite, including running just the tests in a
single file.

David

On Fri, Dec 16, 2022 at 5:29 PM Shubha Ramani <[email protected]>
wrote:

> I have cloned the 4.x repo.
> Then simply from within the repo running python
>  reviewboard\accounts\tests\test_ldap_auth_backend.py
> What do you mean set up a development environment ?
>
> Shubha
>
> On Friday, December 16, 2022 at 1:52:45 PM UTC-8 David Trowbridge wrote:
>
>> How are you running the tests? Have you set up a development environment?
>>
>> David
>>
>> On Fri, Dec 16, 2022 at 1:22 PM Shubha Ramani <[email protected]>
>> wrote:
>>
>>> Using Python 3.7 and installed all the dependencies including django 1.11
>>> I am trying to run test_ldap_auth_backend.py and keep getting the error:
>>> django.core.exceptions.ImproperlyConfigured: Requested setting
>>> DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either
>>> define the environment variable DJANGO_SETTINGS_MODULE or call
>>> settings.configure() before accessing settings.
>>>
>>> I have tried 'reviewboard.settings' and
>>> 'test_ldap_auth_backend.settings'.
>>> When I use the latter I get
>>> ImportError: cannot import name 'User' from 'django.contrib.auth.models'
>>> (C:\Users\shramani\PY37_VENV\lib\site-packages\django\contrib\auth\models.py)
>>>
>>> Thanks,
>>>
>>> Shubha
>>>
>>> --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Review Board Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/reviewboard/f8e96031-528f-4e84-856c-33340e39f51fn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/reviewboard/f8e96031-528f-4e84-856c-33340e39f51fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/da3b4e10-d985-49d8-9eec-9ea55d6d2771n%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/da3b4e10-d985-49d8-9eec-9ea55d6d2771n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNV2CBkDWwYAwY6iQBvuP5gQq77xKBm%3DTcXYOeVZccFQnw%40mail.gmail.com.

Reply via email to