1
0

Compare commits

..

No commits in common. "bd405b3d5a04f13b85e207c0d530233881d88a60" and "cb74afa1bf2d1a987095e23316fe2bf59ee8d31f" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -19,13 +19,10 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Installing Python Dependencies - name: Installing Python Dependencies
if: success() if: success()
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest pytest-cov --break-system-packages run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages
- name: Installing Python Test Dependencies - name: Installing Python Test Dependencies
if: success() && hashFiles('requirements_test.txt') != '' if: success() && hashFiles('requirements_test.txt') != ''
run: python3 -m pip install --upgrade -r requirements_test.txt --break-system-packages run: python3 -m pip install --upgrade -r requirements_test.txt --break-system-packages
- name: Installing package - name: Installing package
if: success() if: success()
run: python3 -m pip install .[test] --break-system-packages run: python3 -m pip install .[test] --break-system-packages
- name: Test Python Code
if: success()
run: python3 -m pytest test --cov=requests_util --cov-report html:htmlcov --cov-fail-under=0

View File

@ -71,7 +71,7 @@ def initialize_session() -> requests.Session:
def setup_limiter( def setup_limiter(
session: requests.Session, session: requests.Session,
url_prefix: str, url_prefix: str,
expire_after: datetime.timedelta | None = None, expire_after: datetime.datetime | None = None,
**limiter_args, **limiter_args,
) -> requests.Session: ) -> requests.Session:
"""Initializes limiter on session for the given domain with the given """Initializes limiter on session for the given domain with the given