From 4943cf6873ebaec013002ffffd653976620b88bf Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Sun, 13 Dec 2020 16:37:35 +0530 Subject: [PATCH] remove print stmnt, update ci --- .github/workflows/ci.yml | 3 +-- waybackpy/wrapper.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2fc506..19ca96c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,7 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - cd tests - pytest --cov=../waybackpy . + pytest --cov=waybackpy tests/ - name: Upload coverage to Codecov run: | bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index 86089ba..c06a9a7 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -189,7 +189,6 @@ class Url: headers = {"User-Agent": "%s" % self.user_agent} payload = {"url": "%s" % self._clean_url(), "timestamp" : timestamp} response = _get_response(endpoint, params=payload, headers=headers) - print(response.text) data = response.json() if not data["archived_snapshots"]: raise WaybackError(