Skip to content
  1. Feb 11, 2023
  2. Oct 20, 2021
    • hydrargyrum's avatar
      tests: run doctests too · e249ed9b
      hydrargyrum authored
      e249ed9b
    • hydrargyrum's avatar
      tests: use pytest instead of nose · 74c24521
      hydrargyrum authored
      Warning: the reported coverage is much lower than before. But when reading
      the previous reports, it seems the coverage was overestimated by large,
      mostly because old report did not consider all files in woob dir.
      
      Also for some reason pytest's JUnit XML uses `modules.<name>.<class>`
      with the `modules.` prefix so we take it into account in testing grid.
      74c24521
  3. Sep 18, 2021
  4. Mar 24, 2021
  5. Mar 05, 2021
    • hydrargyrum's avatar
      weboob.core.ouiboube: support new user directories and env vars · d4798c6f
      hydrargyrum authored
      For user setups, a number of dirs are used, whose paths are
      customizable.
      
      For workdir, before:
      - $WEBOOB_WORKDIR
      - $XDG_CONFIG_HOME/weboob
      
      and after:
      - $WOOB_WORKDIR
      - $WEBOOB_WORKDIR
      - $XDG_CONFIG_HOME/woob
      - $XDG_CONFIG_HOME/weboob
      
      If the old name is found in $XDG_CONFIG_HOME, it will try to rename it.
      
      For data dir, now:
      - $WOOB_DATADIR
      - $WOOB_WORKDIR
      - $WEBOOB_DATADIR
      - $WEBOOB_WORKDIR
      - $XDG_DATA_HOME/woob
      - $XDG_DATA_HOME/weboob
      
      Also, $WOOB_BACKENDS then $WEBOOB_BACKENDS.
      d4798c6f
  6. Mar 03, 2021
  7. Mar 01, 2021
  8. Feb 27, 2021
  9. Dec 15, 2019
    • hydrargyrum's avatar
      tools: scripts/weboob-config doesn't exist anymore · a434c282
      hydrargyrum authored
      For now, run using weboob package from PYTHONPATH. Maybe we should
      require setup.py to have been run before being able to start run_tests.
      This way, we're sure everything is set up.
      
      Same for make_man and weboob_lint.
      a434c282
  10. Nov 30, 2019
    • Laurent Bachelier's avatar
      tools: Avoid stale_pyc under Python 3 · f482d236
      Laurent Bachelier authored and hydrargyrum's avatar hydrargyrum committed
      Under Python 3, __pycache__ is used, and is not cleaned up.
      It is also not necessary to clean it up anymore, since those .pyc files
      cannot be imported without a .py files unlike what happens under Python 2.
      f482d236
  11. Jan 02, 2019
  12. Apr 26, 2018
  13. Apr 23, 2018
  14. Jul 11, 2017
  15. Jun 19, 2017
  16. Dec 24, 2016
    • Phyks (Lucas Verney)'s avatar
      6f700b99
    • Phyks (Lucas Verney)'s avatar
      Gitlab-CI continuous integration · 434c0f15
      Phyks (Lucas Verney) authored
      This commit adds the necessary files to run the CI using Gitlab-CI. For
      now, it checks that Weboob builds, then runs the linting script
      (checking that every module as an icon and some tests + PyFlakes) and
      the unittests. Most of modules unittests cannot run because there is no
      backend configured.
      
      Some changes were needed in the pre-existing scripts:
      * Edit `weboob_lint` to exit with non-zero code if it finds modules
      without icons or tests, so that the build could fail in such a case.
      * Edit `run_tests.sh` to set correct exit code on failure and rework
      generation of XUNIT output. Also added some doc about useful environment
      variables. Added a way to generate an xunit output file when running modules
      unittests, passing a `XUNIT_OUT` env variable to `run_tests.sh` script.
      * Modification of `setup.cfg` and `run_tests` scripts to handle code
      coverage generation. The matching regex in Gitlab for the total code
      coverage is `TOTAL: (\d+\%\s*)$)`.
      
      I also added a script to generate a JSON module status matrix from
      modules unittests, ready to be sent to a
      [Weboob-CI](https://github.com/Phyks/weboob-ci) instance.
      
      NOTE: Required Python modules are taken from the `setup.py` script.
      `.ci/requirements.txt` contains the requirements to run the unittests
      and the CI, whereas `.ci/requirements_modules.txt` contains the specific
      Python modules required at runtime by Weboob modules. The latter could
      eventually be replaced by a proper call to `debpydep` script.
      434c0f15
  17. Nov 14, 2016
  18. Jul 17, 2015
  19. Oct 01, 2014
  20. Jun 18, 2014
  21. Aug 12, 2013
  22. Aug 03, 2013
  23. Apr 10, 2013
  24. Mar 25, 2013
  25. Nov 11, 2012
  26. Nov 10, 2012
  27. Apr 27, 2012
  28. Apr 10, 2012
  29. Mar 14, 2012
  30. Feb 28, 2012
  31. Feb 12, 2012
  32. Jan 30, 2012