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

Write Tests #69

Open
HillcrestEnigma opened this issue Oct 5, 2021 · 2 comments
Open

Write Tests #69

HillcrestEnigma opened this issue Oct 5, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers p3 An issue that should be addressed when able.

Comments

@HillcrestEnigma
Copy link
Member

No description provided.

@HillcrestEnigma HillcrestEnigma added enhancement New feature or request p3 An issue that should be addressed when able. labels Oct 5, 2021
@JasonLovesDoggo JasonLovesDoggo self-assigned this May 19, 2023
@JasonLovesDoggo JasonLovesDoggo added the good first issue Good for newcomers label May 19, 2023
@JasonLovesDoggo
Copy link
Member

wider/full test coverage (i.e. lookup fields, all endpoints at a min)

Focus on API testing as that's really all that matters now

@JasonLovesDoggo JasonLovesDoggo removed their assignment Dec 10, 2023
@JasonLovesDoggo
Copy link
Member

Added a bunch in tests.py + CI but we need better coverage.
i'm also going to leave this here

name: Django CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:

    runs-on: ubuntu-20.04
    strategy:
      matrix:
        db: [sqlite, postgres, mysql]
        python-version: [3.6, 3.7, 3.8]
        include:
          - db: postgres
            db_user: runner
            db_password: ''
          - db: mysql
            db_user: root
            db_password: root

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Start MySQL
      if: matrix.db == 'mysql'
      run: sudo systemctl start mysql.service
    - name: Start PostgreSQL
      if: matrix.db == 'postgres'
      run: |
        sudo systemctl start postgresql.service
        sudo -u postgres createuser -s runner
    - name: Install Dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
        pip install apprise braintree coverage coveralls mysqlclient
    - name: Run Tests
      env:
        DB: ${{ matrix.db }}
        DB_USER: ${{ matrix.db_user }}
        DB_PASSWORD: ${{ matrix.db_password }}
      run: |
        coverage run --omit=*/tests/* --source=hc manage.py test
    - name: Coveralls
      if: matrix.db == 'postgres' && matrix.python-version == '3.8'
      run: coveralls
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        ```
        
        

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers p3 An issue that should be addressed when able.
Projects
None yet
Development

No branches or pull requests

2 participants