health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #61850] Issues with package testing


From: Axel Braun
Subject: [Health-dev] [bug #61850] Issues with package testing
Date: Wed, 19 Jan 2022 09:30:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

Follow-up Comment #2, bug #61850 (project health):

Yes, testing can become quite tricky, as the setup is not 'simple', see below.
In any case it should be optional.

I think in the trytond-testsuite there is a workaround for the below issue:

 [    6s] ==================================== ERRORS
====================================
[    6s] ____________________ ERROR collecting tests/test_health.py
_____________________
[    6s] tests/test_health.py:2: in <module>
[    6s]     import trytond.tests.test_tryton
[    6s] <frozen importlib._bootstrap>:971: in _find_and_load
[    6s]     ???
[    6s] <frozen importlib._bootstrap>:955: in _find_and_load_unlocked
[    6s]     ???
[    6s] <frozen importlib._bootstrap>:656: in _load_unlocked
[    6s]     ???
[    6s] <frozen importlib._bootstrap>:626: in _load_backward_compatible
[    6s]     ???
[    6s] /usr/lib/python3.6/site-packages/_pytest/assertion/rewrite.py:293: in
load_module
[    6s]     six.exec_(co, mod.__dict__)
[    6s] /usr/lib/python3.6/site-packages/trytond/tests/test_tryton.py:44: in
<module>
[    6s]     DB_NAME = os.environ['DB_NAME']
[    6s] /usr/lib64/python3.6/os.py:669: in __getitem__
[    6s]     raise KeyError(key) from None
[    6s] E   KeyError: 'DB_NAME'


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61850>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]