Compare commits
3 Commits
cb74afa1bf
...
bd405b3d5a
Author | SHA1 | Date | |
---|---|---|---|
bd405b3d5a | |||
47fec623f5 | |||
0cb4f67576 |
|
@ -19,10 +19,13 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
- name: Installing Python Dependencies
|
||||
if: success()
|
||||
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages
|
||||
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest pytest-cov --break-system-packages
|
||||
- name: Installing Python Test Dependencies
|
||||
if: success() && hashFiles('requirements_test.txt') != ''
|
||||
run: python3 -m pip install --upgrade -r requirements_test.txt --break-system-packages
|
||||
- name: Installing package
|
||||
if: success()
|
||||
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
|
||||
|
|
|
@ -71,7 +71,7 @@ def initialize_session() -> requests.Session:
|
|||
def setup_limiter(
|
||||
session: requests.Session,
|
||||
url_prefix: str,
|
||||
expire_after: datetime.datetime | None = None,
|
||||
expire_after: datetime.timedelta | None = None,
|
||||
**limiter_args,
|
||||
) -> requests.Session:
|
||||
"""Initializes limiter on session for the given domain with the given
|
||||
|
|
Loading…
Reference in New Issue
Block a user