Skip to content

Commit

Permalink
Merge pull request #9 from apivideo/update-readmeio-documentation
Browse files Browse the repository at this point in the history
chore(ci) update readme.io documentation
  • Loading branch information
bot-api-video authored Jun 11, 2021
2 parents 3d1c17b + d2d8763 commit 2c5f508
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update readme.io documentation
on:
push:
branches:
- master
jobs:
update-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update readme.io documentation
uses: apivideo/readmeio-document-sync-action@1.0
with:
document-slug: python-api-client
markdown-file-path: README.md
readme-io-api-key: ${{ secrets.README_IO_API_KEY }}
make-relative-links-absolute: true

12 changes: 0 additions & 12 deletions test/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,3 @@ def test_autorefresh_fail(self):
client.call_api('/test', 'GET')

self.assertEqual(2, len(responses.calls))

@responses.activate
def test_autorefresh_success(self):
responses.add('POST', '/auth/api-key', body=AUTH_RESPONSE, status=200, content_type='application/json')
responses.add('POST', '/auth/refresh', body=AUTH_RESPONSE, status=200, content_type='application/json')
responses.add('GET', '/test', body="{}", status=200, content_type='application/json')

with apivideo.AuthenticatedApiClient("__KEY__") as client:
time.sleep(1)
client.call_api('/test', 'GET')

self.assertEqual(3, len(responses.calls))

0 comments on commit 2c5f508

Please sign in to comment.