Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Testing #84

Merged
merged 35 commits into from
Jun 2, 2023
Merged

Setup Testing #84

merged 35 commits into from
Jun 2, 2023

Commits on May 29, 2023

  1. configure tests and add base fixtures

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    7348143 View commit details
    Browse the repository at this point in the history
  2. update test dependencies

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    9663072 View commit details
    Browse the repository at this point in the history
  3. add root route integration test

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    8e05591 View commit details
    Browse the repository at this point in the history
  4. pin sqlalchemy lib to version 1 only

    sqlalchemy 2 has a lot of changes but the 'databases' async package is
    not yet compatible.
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    f0de647 View commit details
    Browse the repository at this point in the history
  5. add auth routes integration tests

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    5aeffab View commit details
    Browse the repository at this point in the history
  6. Pytest : always generate coverage data and HTML

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    a8170e2 View commit details
    Browse the repository at this point in the history
  7. add GitHub Action to run tests

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    7cd5b28 View commit details
    Browse the repository at this point in the history
  8. remove tests from coverage totals

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 29, 2023
    Configuration menu
    Copy the full SHA
    6f8876b View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. rename CI action to Tests and add coverage report

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    9efb0dd View commit details
    Browse the repository at this point in the history
  2. fix tests badge

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    0a2586d View commit details
    Browse the repository at this point in the history
  3. try fix coverage uploading

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    e5a5688 View commit details
    Browse the repository at this point in the history
  4. add code coverage badge

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    3ff3209 View commit details
    Browse the repository at this point in the history
  5. add codecov token

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    07802a6 View commit details
    Browse the repository at this point in the history
  6. add custom coverage upload name

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    4e72cd9 View commit details
    Browse the repository at this point in the history
  7. change some code-style linting issues

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    48fdf5a View commit details
    Browse the repository at this point in the history
  8. more code-style issue fixes

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    ff11425 View commit details
    Browse the repository at this point in the history
  9. tidy test_auth_routes

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    48b025b View commit details
    Browse the repository at this point in the history
  10. fix wrong comment in test_auth_routes

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    bfc22f2 View commit details
    Browse the repository at this point in the history
  11. add more specific .pylintrc

    ignore migrations when checking
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    42f1ec8 View commit details
    Browse the repository at this point in the history
  12. add tests for EmailManager

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    a128a06 View commit details
    Browse the repository at this point in the history
  13. add basic test info to README

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    a26e580 View commit details
    Browse the repository at this point in the history
  14. make token expiry a config setting

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    82ac4e6 View commit details
    Browse the repository at this point in the history
  15. fix banned users getting token on login

    the token would not work, but better to make it obvious from the start
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    aa8ce36 View commit details
    Browse the repository at this point in the history
  16. more tests for auth route

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed May 30, 2023
    Configuration menu
    Copy the full SHA
    105534e View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. wip on UserManager tests

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    c0600ea View commit details
    Browse the repository at this point in the history
  2. get dependabot and pre-commit.ci to coexist

    Hopefully 🤷‍♂️
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    3ce163a View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into add_tests

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    86f9be2 View commit details
    Browse the repository at this point in the history
  4. add ability to use Postgresql for tests

    Currently commented out until sort async crash
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    09189dd View commit details
    Browse the repository at this point in the history
  5. update skip reason for one test

    'test_create_duplicate_user'
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    3547cc6 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. catch sqlite duplicate email error and test it

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    0b12f11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fee0e72 View commit details
    Browse the repository at this point in the history
  3. work on a copy of the posted registration data

    Otherwise the original can get modified and cause issues with testing
    
    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    7d4fe86 View commit details
    Browse the repository at this point in the history
  4. exception if try to set banned to current value

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    fd80b29 View commit details
    Browse the repository at this point in the history
  5. Complete 100% test coverage for UserManager

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    89f0bc4 View commit details
    Browse the repository at this point in the history
  6. use ErrorMessages in tests instead of strings

    Signed-off-by: Grant Ramsay <seapagan@gmail.com>
    seapagan committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    c3ca6b3 View commit details
    Browse the repository at this point in the history