remove print stmnt, update ci
This commit is contained in:
parent
f89368f16d
commit
4943cf6873
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -36,8 +36,7 @@ jobs:
|
|||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
cd tests
|
pytest --cov=waybackpy tests/
|
||||||
pytest --cov=../waybackpy .
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
run: |
|
run: |
|
||||||
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
|
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
@ -189,7 +189,6 @@ class Url:
|
|||||||
headers = {"User-Agent": "%s" % self.user_agent}
|
headers = {"User-Agent": "%s" % self.user_agent}
|
||||||
payload = {"url": "%s" % self._clean_url(), "timestamp" : timestamp}
|
payload = {"url": "%s" % self._clean_url(), "timestamp" : timestamp}
|
||||||
response = _get_response(endpoint, params=payload, headers=headers)
|
response = _get_response(endpoint, params=payload, headers=headers)
|
||||||
print(response.text)
|
|
||||||
data = response.json()
|
data = response.json()
|
||||||
if not data["archived_snapshots"]:
|
if not data["archived_snapshots"]:
|
||||||
raise WaybackError(
|
raise WaybackError(
|
||||||
|
Loading…
Reference in New Issue
Block a user