Skip to content

Commit

Permalink
Fixed invalid annotation (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Jun 10, 2020
1 parent 2066aed commit e19b378
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- stage: "flake8"
python: "3.6"
env:
- FLAKE8=3.8.2
- FLAKE8=3.8.3
- PEP8_NAMING=0.10.0
install:
- pip install flake8==$FLAKE8
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pytest-cov = "==2.9.0"
responses = "==0.10.14"
mypy = "==0.780"
black = "==19.10b0"
flake8 = "==3.8.2"
flake8 = "==3.8.3"
pep8-naming = "==0.10.0"

[packages]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ result = api.results.add_result_for_case(
version="1"
)
attach = "attach.jpg"
api.attachments.add_attachment_to_result(result[0]["id"], attach)
api.attachments.add_attachment_to_result(result["id"], attach)

api.runs.close_run(my_test_run["id"])
api.milestones.update_milestone(new_milestone["id"], is_completed=True)
Expand Down
2 changes: 1 addition & 1 deletion testrail_api/_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def add_result(self, test_id: int, **kwargs) -> List[dict]:
METHODS.POST, "add_result/{}".format(test_id), json=kwargs
)

def add_result_for_case(self, run_id: int, case_id: int, **kwargs) -> List[dict]:
def add_result_for_case(self, run_id: int, case_id: int, **kwargs) -> dict:
"""
http://docs.gurock.com/testrail-api2/reference-results#add_result_for_case
Expand Down

0 comments on commit e19b378

Please sign in to comment.