Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security depends #107

Merged
merged 3 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "==7.4.4"
pytest-cov = "==4.1.0"
pytest = "==8.2.2"
pytest-cov = "==5.0.0"
responses = "==0.21.0"
black = "==23.12.1"
black = "==24.4.2"
flake8 = "==7.0.0"
pep8-naming = "==0.13.3"
twine = "==4.0.2"
pep8-naming = "==0.14.1"

[packages]
requests = "==2.31.0"
requests = "==2.32.3"
testrail-api = { editable = true, path = "." }

[requires]
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ max-line-length = 120
count = True
extend-ignore = E203
exclude = __version__.py

[coverage:run]
omit = testrail_api/__version__.py
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
long_description=long_description,
long_description_content_type="text/markdown",
use_scm_version={"write_to": "testrail_api/__version__.py"},
setup_requires=["setuptools_scm==7.1.0"],
install_requires=["requests>=2.20.1"],
setup_requires=["setuptools_scm"],
install_requires=["requests>=2.32.3"],
python_requires=">=3.8",
include_package_data=True,
keywords=[
Expand Down
2 changes: 1 addition & 1 deletion testrail_api/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __get_url(url: str, warn_ignore: bool) -> str:
raise TestRailError(f"Url is not set. Use argument url or env {Environ.URL}")
_url = _url.rstrip("/")
if _url.startswith("http://") and not warn_ignore:
warnings.warn("Using HTTP and not HTTPS may cause writeable API " "requests to return 404 errors")
warnings.warn("Using HTTP and not HTTPS may cause writeable API requests to return 404 errors")
return _url

@staticmethod
Expand Down
Loading