Skip to content

Test coverage increase #89

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

Merged
merged 23 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0783914
chore(refactor): Rename variables
rfsbraz Mar 7, 2024
6f63e6c
chore(refactor): Rename methods
rfsbraz Mar 7, 2024
7b4c271
chore(refactor): Use opposite operator
rfsbraz Mar 7, 2024
159f383
chore(refactor): Refactor 2 complex processing methods
rfsbraz Mar 7, 2024
8ada06a
chore(refactor): Refactor sorts
rfsbraz Mar 7, 2024
abfe5e2
chore(refactor): Refactor excluded method logic
rfsbraz Mar 7, 2024
cfa2a5e
chore(refactor): Refactor plex matching
rfsbraz Mar 7, 2024
b65e573
chore(refactor): Refactor exclusion checks
rfsbraz Mar 7, 2024
b77c979
chore(refactor): Refactor plex matching again
rfsbraz Mar 7, 2024
b323894
chore(refactor): Move logging basicConfig to logger
rfsbraz Mar 7, 2024
91ddeab
chore(refactor): Moved media related deleting to its own file
rfsbraz Mar 8, 2024
83242fa
fix(refactor): Fix some broken references
rfsbraz Mar 8, 2024
111bbff
fix(refactor): Fix test not running
rfsbraz Mar 8, 2024
cc4fe49
chore(refactor): Sort imports
rfsbraz Mar 8, 2024
1326077
chore(ci): Add exclusions
rfsbraz Mar 8, 2024
24c1dad
chore(ci): Remove flake8 from ci
rfsbraz Mar 8, 2024
8da832b
chore(test): Add exclusion rules test coverage
rfsbraz Mar 8, 2024
57a6f0c
chore(refactor): More media cleaner coverage
rfsbraz Mar 11, 2024
2282071
chore(refactor): more test coverage
rfsbraz Mar 12, 2024
022ae78
chore(refactor): more test coverage
rfsbraz Mar 13, 2024
9338412
chore(refactor): increase deleterr coverage
rfsbraz Mar 13, 2024
c52aa82
chore(refactor): Add Trakt test coverage
rfsbraz Mar 18, 2024
de0f102
chore(refactor): Add tautulli tests
rfsbraz Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest coverage
pip install pytest coverage
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
coverage run -m pytest
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ clean:
docker-compose down

test:
pytest
coverage run -m pytest
coverage report
coverage xml
12 changes: 7 additions & 5 deletions app/config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# encoding: utf-8

import yaml
from app import logger
import sys
import os
import sys

import requests
from app.modules.trakt import Trakt
import yaml

from app import logger
from app.constants import VALID_ACTION_MODES, VALID_SORT_FIELDS, VALID_SORT_ORDERS
from app.modules.tautulli import Tautulli
from app.constants import VALID_SORT_FIELDS, VALID_SORT_ORDERS, VALID_ACTION_MODES
from app.modules.trakt import Trakt
from app.utils import validate_units


Expand Down
Loading
Loading