Skip to content
Snippets Groups Projects
  1. Nov 01, 2022
  2. Sep 24, 2022
  3. Sep 12, 2022
  4. Aug 22, 2022
  5. Aug 14, 2022
  6. Aug 13, 2022
  7. Feb 19, 2022
  8. Jan 07, 2022
  9. Nov 17, 2021
    • Kevin Morris's avatar
      change(aurweb): add parallel tests and improve aurweb.db · fa43f6bc
      Kevin Morris authored
      
      This change utilizes pytest-xdist to perform a multiproc test
      run and reworks aurweb.db's code. We no longer use a global
      engine, session or Session, but we now use a memo of engines
      and sessions as they are requested, based on the PYTEST_CURRENT_TEST
      environment variable, which is available during testing.
      
      Additionally, this change strips several SQLite components
      out of the Python code-base.
      
      SQLite is still compatible with PHP and sharness tests, but
      not with our FastAPI implementation.
      
      More changes:
      ------------
      - Remove use of aurweb.db.session global in other code.
      - Use new aurweb.db.name() dynamic db name function in env.py.
      - Added 'addopts' to pytest.ini which utilizes multiprocessing.
          - Highly recommended to leave this be or modify `-n auto` to
            `-n {cpu_threads}` where cpu_threads is at least 2.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Verified
      fa43f6bc
  10. Jun 26, 2021
  11. Jun 06, 2021
  12. Jun 05, 2021
  13. May 18, 2021
  14. Feb 20, 2021
  15. Feb 27, 2020
Loading