-
Notifications
You must be signed in to change notification settings - Fork 200
Improvements in tests process #297
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
Hellowlol
merged 54 commits into
pushingkarmaorg:master
from
andrey-yantsen:shiny-travis
Sep 14, 2018
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
5a04ce4
lets begin
andrey-yantsen 0c5574f
skip plexpass tests if there is not plexpass on account
andrey-yantsen 470aca4
test new myplex attrubutes
andrey-yantsen 2924495
bootstrap: proper photos organisation
andrey-yantsen 7d8b61a
fix rest of photos tests
andrey-yantsen 90f7867
fix myplex new attributes test
andrey-yantsen ab2e856
fix music bootstrap by setting agent to lastfm
andrey-yantsen cdac7b6
fix sync tests
andrey-yantsen a923db6
increase bootstrap timeout
andrey-yantsen 31a9f53
remove timeout from .travis.yml
andrey-yantsen 8acc125
do not create playlist-style photoalbums in plex-bootstraptest.py
andrey-yantsen 92d5b96
allow negative filtering in LibrarySection.search()
andrey-yantsen c1abf50
fix sync tests once again
andrey-yantsen faeaaba
use sendCrashReports in test_settings
andrey-yantsen 6410fe0
fix test_settings
andrey-yantsen c582a80
fix test_video
andrey-yantsen 28e0883
do not accept eula in bootstrap
andrey-yantsen fee3c81
fix PlexServer.isLatest()
andrey-yantsen 5043d07
add test against old version of PlexServer
andrey-yantsen b3a6658
fix MyPlexAccount.OutOut
andrey-yantsen aa7c052
add flag for one-time testing in Travis
andrey-yantsen fe3972d
fix test_library onDeck tests
andrey-yantsen 4bdf372
fix more tests
andrey-yantsen 440b8ba
use tqdm in plex-bootstraptest for media scanning progress
andrey-yantsen ef9ec7b
create sections one-by-one
andrey-yantsen df874b0
update docs on AlertListener for timeline entries
andrey-yantsen 7ccca8e
fix plex-bootstraptest for server version 1.3.2
andrey-yantsen 04befe2
display skip/xpass/xfail reasons
andrey-yantsen 34a7c5e
fix tests on 1.3
andrey-yantsen 0902567
wait for music to be fully processed in plex-bootstraptest
andrey-yantsen 1e294bf
fix misplaced TEST_ACCOUNT_ONCE
andrey-yantsen 604325d
fix test_myplex_users, not sure if in proper-way
andrey-yantsen 580e4c9
add pytest-rerunfailures; mark test_myplex_optout as flaky
andrey-yantsen 18a3cb1
fix comment
andrey-yantsen 18e31cd
Revert "add pytest-rerunfailures; mark test_myplex_optout as flaky"
andrey-yantsen 987401b
restart plex container on failure
andrey-yantsen 0087764
add conftest.wait_until() and used where some retries are required
andrey-yantsen e3d2707
add more wait_until() usage in test_sync
andrey-yantsen 7d2f2b0
fix managed user search
andrey-yantsen 90b5477
fix updating managed users in myplex
andrey-yantsen 78aa09f
allow to add new servers to existent users
andrey-yantsen 20c4eff
add new server to a shared user while bootstrapping
andrey-yantsen 24ceba7
add some docs on testing process
andrey-yantsen fcce22b
perform few attemps when unable to get the claim token
andrey-yantsen 0d536bd
unlock websocket-client in requirements_dev
andrey-yantsen 99a3bb1
fix docblock in tools/plex-teardowntest
andrey-yantsen ae93093
do not hardcode mediapart size in test_video
andrey-yantsen 1df20d2
remove cache:pip from travis
andrey-yantsen bde68d0
Revert "unlock websocket-client in requirements_dev"
andrey-yantsen ada447a
remove debug from server.py
andrey-yantsen af069e5
improve webhook tests
andrey-yantsen 8b0430a
fix type() check to isinstance()
andrey-yantsen 6a95845
remove excessive `else` branch due to Hellowlol advice
andrey-yantsen 415e3a4
add `unknown` as allowed `myPlexMappingState` in test_server
andrey-yantsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,72 @@ | ||
| language: | ||
| - python | ||
| language: python | ||
|
|
||
| stages: | ||
| - test | ||
| - name: deploy | ||
| if: tag IS present | ||
|
|
||
| sudo: required | ||
| services: | ||
| - docker | ||
|
|
||
| python: | ||
| - '2.7' | ||
| - '3.4' | ||
| - '3.6' | ||
| - 2.7 | ||
| - 3.4 | ||
| - 3.6 | ||
|
|
||
| env: | ||
| global: | ||
| - PLEXAPI_AUTH_SERVER_BASEURL=http://127.0.0.1:32400 | ||
| matrix: | ||
| - PLEX_CONTAINER_TAG=latest | ||
|
|
||
| before_install: | ||
| - pip install --upgrade pip | ||
| - pip install --upgrade setuptools | ||
| - pip install --upgrade pytest pytest-cov coveralls | ||
| - pip install --upgrade pip | ||
| - pip install --upgrade setuptools | ||
| - pip install --upgrade pytest pytest-cov coveralls | ||
| install: | ||
| - pip install -r requirements_dev.txt | ||
| - pip install -r requirements_dev.txt | ||
| - PYTHONPATH="$PWD:$PYTHONPATH" python -u tools/plex-bootstraptest.py --destination plex --advertise-ip=127.0.0.1 | ||
| --bootstrap-timeout 540 --docker-tag $PLEX_CONTAINER_TAG | ||
|
|
||
| script: | ||
| - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then py.test tests --tb=native --verbose | ||
| --cov-config .coveragerc --cov=plexapi; fi | ||
| - flake8 plexapi --exclude=compat.py --max-line-length=120 --ignore=E128,E701,E702,E731,W293 | ||
| - py.test tests -rxXs --ignore=tests/test_sync.py --tb=native --verbose --cov-config .coveragerc --cov=plexapi | ||
| - PLEXAPI_HEADER_PROVIDES='controller,sync-target' PLEXAPI_HEADER_PLATFORM=iOS PLEXAPI_HEADER_PLATFORM_VERSION=11.4.1 | ||
| PLEXAPI_HEADER_DEVICE=iPhone py.test tests/test_sync.py -rxXs --tb=native --verbose --cov-config .coveragerc | ||
| --cov=plexapi --cov-append | ||
|
|
||
| after_success: | ||
| - coveralls | ||
| matrix: | ||
| fast_finish: true | ||
| deploy: | ||
| provider: pypi | ||
| user: mjs7231 | ||
| password: | ||
| secure: UhuEN9GAp9zMEXdVTxSrbhfYf4HjTcj47l093Qh1HYKmZACxJM/+JkQCm7+oHPJpo7YDLk2we9oEsQ41maZBr9WgZI1lwR6m590M12vPhPI7NCVzINxJqebc0uZhCFsAFFKA3kzpRQbDfsBUG4yL/AzeMcvJMgIg3m07KRVhBywnnRhQ77trbBI0Io5MBzfW9PYDeGJqlNDBM7SbB4tK0udGZQT9wmFwvIoJODPDnM15Ry4vpkVNww/vVgyHklmnYlPzQgvhSMOXk0+MWlYtaKmu6uuLAiRccT1Fsmi1POKuFEq8S0Z7w4LmwxCVRaCvsZdNW5eXWgPDhZXNcLrKMwjgJt9Vj3VcD+NCywux/C1hTq7tecBocA13kzbgg4fd2sATOjQT5iaRPGrDtKm8e00hxr125n0StDxXdYGl2W5sH0LCkZE6Vq1GjXYjKFXZeTk3Fzav/3N8IxHBX3CliJB/vbloJ2mpz1kXL4UTORl9pghPyGOOq2yJPYSSWly/RsAD7UDrL1/lezaPSJGKbZJ0CMyfA83kd82/hgZflOuBuTcPHCZSU3zMCs0fsImZZxr6Qm1tbff+iyNS/ufoYgeVfsWhlEl9FoLv1g4HG6oA+uDHz+jKz9uSRHcGqD6P4JJK+H+yy0PeYfo7b6eSqFxgt8q8QfifUaCrVoCiY+c= | ||
| on: | ||
| tags: true | ||
| - coveralls | ||
|
|
||
| after_script: | ||
| - PYTHONPATH="$PWD:$PYTHONPATH" python -u tools/plex-teardowntest.py | ||
|
|
||
| jobs: | ||
| include: | ||
| - python: 3.6 | ||
| env: | ||
| - PLEX_CONTAINER_TAG=1.3.2.3112-1751929 | ||
| - TEST_ACCOUNT_ONCE=1 | ||
| - python: 3.6 | ||
| name: "Flake8" | ||
| install: | ||
| - pip install -r requirements_dev.txt | ||
| script: flake8 plexapi --exclude=compat.py --max-line-length=120 --ignore=E128,E701,E702,E731,W293 | ||
| after_success: true | ||
| after_script: true | ||
| env: | ||
| - PLEX_CONTAINER_TAG=latest | ||
| - stage: deploy | ||
| name: "Deploy to PyPi" | ||
| python: 3.6 | ||
| install: true | ||
| script: true | ||
| env: | ||
| - PLEX_CONTAINER_TAG=latest | ||
| deploy: | ||
| provider: pypi | ||
| user: mjs7231 | ||
| password: | ||
| secure: UhuEN9GAp9zMEXdVTxSrbhfYf4HjTcj47l093Qh1HYKmZACxJM/+JkQCm7+oHPJpo7YDLk2we9oEsQ41maZBr9WgZI1lwR6m590M12vPhPI7NCVzINxJqebc0uZhCFsAFFKA3kzpRQbDfsBUG4yL/AzeMcvJMgIg3m07KRVhBywnnRhQ77trbBI0Io5MBzfW9PYDeGJqlNDBM7SbB4tK0udGZQT9wmFwvIoJODPDnM15Ry4vpkVNww/vVgyHklmnYlPzQgvhSMOXk0+MWlYtaKmu6uuLAiRccT1Fsmi1POKuFEq8S0Z7w4LmwxCVRaCvsZdNW5eXWgPDhZXNcLrKMwjgJt9Vj3VcD+NCywux/C1hTq7tecBocA13kzbgg4fd2sATOjQT5iaRPGrDtKm8e00hxr125n0StDxXdYGl2W5sH0LCkZE6Vq1GjXYjKFXZeTk3Fzav/3N8IxHBX3CliJB/vbloJ2mpz1kXL4UTORl9pghPyGOOq2yJPYSSWly/RsAD7UDrL1/lezaPSJGKbZJ0CMyfA83kd82/hgZflOuBuTcPHCZSU3zMCs0fsImZZxr6Qm1tbff+iyNS/ufoYgeVfsWhlEl9FoLv1g4HG6oA+uDHz+jKz9uSRHcGqD6P4JJK+H+yy0PeYfo7b6eSqFxgt8q8QfifUaCrVoCiY+c= | ||
| on: | ||
| tags: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,4 @@ sphinx | |
| sphinx-rtd-theme | ||
| sphinxcontrib-napoleon | ||
| tqdm | ||
| websocket-client | ||
| websocket-client==0.48.0 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the benefit by excludeAllLeaves? Faster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without it we'd have "All Seasons" as one more seasons, I think it's a bit unexpected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure i understand. This is supposed to returns all seasons. does that still happen?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, sure. If the show has 2 seasons it'll return [<Season 1>, <Season 2>], but if you'd omit
excludeAllLeavesyou'll receive [<All Seasons>, <Season 1>, <Season 2>].