[PIPE1D-11] pytest failed for release 0.12.0 Created: 11/Jun/19 Updated: 03/Jul/20 Resolved: 03/Jul/20 |
|
| Status: | Done |
| Project: | DRP 1D pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | Kiyoto Yabe | Assignee: | Pierre-Yves CHABAUD |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I'm trying to install the latest version on a debian server. drp_1d seems to be OK with the test passed, but I got failures below during the pytest process for drp_1dpipe. This might happen in the older version, but I don't remember what was wrong.
============================================================================================= test session starts ============================================================================================= drp_1dpipe/tests/test_io.py . [ 12%] ================================================================================================== FAILURES =================================================================================================== def test_run(): This function test the "run" function of "pre_process.py" module. workdir = TemporaryDirectory() fits_file = [] > result_run = run(args) drp_1dpipe/tests/test_pre_process.py:61: args = <drp_1dpipe.tests.test_pre_process.FakeArgs object at 0x7f278421c2b0> def run(args): This function creates a json file containing a list of list of spectra. :param args: parsed arguments of the program.
> spectra_dir = normpath(args.workdir, args.spectra_dir) drp_1dpipe/pre_process/pre_process.py:67: AttributeError def test_args_from_file(): This function tests feature of retrieving argument value from class MyCls(): args = MyCls() drp_1dpipe/tests/test_utils.py:59: TypeError – Docs: https://docs.pytest.org/en/latest/warnings.html |
| Comments |
| Comment by Kiyoto Yabe [ 03/Jul/19 ] |
|
Thank you for your fixing that. Now I don't see any errors in pytest: ============================================================ test session starts ============================================================ drp_1dpipe/tests/test_io.py . [ 12%] ============================================================= warnings summary ============================================================== – Docs: https://docs.pytest.org/en/latest/warnings.html |
| Comment by Kiyoto Yabe [ 03/Jul/19 ] |
|
But, on the other hand, I got the following error during processing using example data. Is this because of using python3.5? If necessary, I'll file another ticket.
================================= Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |