Skip to content

Commit 8f7e315

Browse files
authored
Merge pull request #300 from andrey-yantsen/fix-tests
Fix tests
2 parents 12a318a + a774925 commit 8f7e315

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
language: python
22

33
stages:
4-
- test
4+
- syntax
5+
- name: test
6+
if: type != pull_request
57
- name: deploy
6-
if: tag IS present
8+
if: tag = present
79

810
sudo: required
911
services:
@@ -43,11 +45,8 @@ after_script:
4345

4446
jobs:
4547
include:
46-
- python: 3.6
47-
env:
48-
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
49-
- TEST_ACCOUNT_ONCE=1
50-
- python: 3.6
48+
- stage: syntax
49+
python: 3.6
5150
name: "Flake8"
5251
install:
5352
- pip install -r requirements_dev.txt
@@ -56,6 +55,11 @@ jobs:
5655
after_script: true
5756
env:
5857
- PLEX_CONTAINER_TAG=latest
58+
- stage: test
59+
python: 3.6
60+
env:
61+
- PLEX_CONTAINER_TAG=1.3.2.3112-1751929
62+
- TEST_ACCOUNT_ONCE=1
5963
- stage: deploy
6064
name: "Deploy to PyPi"
6165
python: 3.6

plexapi/photo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from plexapi import media, utils
33
from plexapi.base import PlexPartialObject
44
from plexapi.exceptions import NotFound, BadRequest
5-
from plexapi.exceptions import NotFound
65
from plexapi.compat import quote_plus
76

87

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_utils_toDatetime():
1010

1111

1212
def test_utils_threaded():
13-
def _squared(num, results, i):
13+
def _squared(num, results, i, job_is_done_event=None):
1414
time.sleep(0.5)
1515
results[i] = num * num
1616
starttime = time.time()

0 commit comments

Comments
 (0)