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

Bump coverage from 7.4.4 to 7.5.1 #132

Merged
merged 5 commits into from
May 10, 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
373 changes: 187 additions & 186 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "peopledatalabs"
version = "3.0.9"
version = "3.0.10"
description = "Official Python client for the People Data Labs API"
homepage = "https://www.peopledatalabs.com"
repository = "https://github.com/peopledatalabs/peopledatalabs-python"
Expand Down Expand Up @@ -36,12 +36,12 @@ requests = "^2"

[tool.poetry.dev-dependencies]
autoflake = "^1.7"
black = "^24.2.0"
coverage = "^7.4.0"
black = "^24.4.2"
coverage = "^7.5.1"
docformatter = "^1.7"
flake8 = "^5.0.4"
pylint = "^3.0.3"
pytest = "^8.1.1"
pytest = "^8.2.0"
pyupgrade = "^3.3.2"

[build-system]
Expand Down
635 changes: 197 additions & 438 deletions requirements.txt

Large diffs are not rendered by default.

747 changes: 328 additions & 419 deletions requirements_dev.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/peopledatalabs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
from .main import PDLPY


__version__ = "3.0.9"
__version__ = "3.0.10"

__all__ = ["PDLPY"]
2 changes: 1 addition & 1 deletion tests/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_version():
"""
Version check.
"""
assert __version__ == "3.0.9"
assert __version__ == "3.0.10"


@pytest.mark.usefixtures("fake_api_key")
Expand Down
2 changes: 1 addition & 1 deletion tests/sandbox/person/test_sandbox_enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_api_endpoint_sandbox_enrichment(client_sandbox_enabled):
Tests successful execution of enrichment API.
"""
enriched = client_sandbox_enabled.person.enrichment(
email="irussell@example.org"
email="reneewillis74@aol.com"
)
assert isinstance(enriched, requests.Response)
assert enriched.status_code == 200
6 changes: 4 additions & 2 deletions tests/sandbox/person/test_sandbox_identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def test_api_endpoint_sandbox_identify(client_sandbox_enabled):
"""
Tests successful execution of identify API.
"""
identified = client_sandbox_enabled.person.identify(company="walmart")
identified = client_sandbox_enabled.person.identify(
company="browning-willis"
)
assert isinstance(identified, requests.Response)
assert identified.status_code == 200
assert "matches" in identified.json()
Expand All @@ -46,5 +48,5 @@ def test_api_endpoint_sandbox_identify_list_values_raise_validation_error(
"""
with pytest.raises(ValidationError):
client_sandbox_enabled.person.identify(
company=["walmart"],
company=["browning-willis"],
)
10 changes: 5 additions & 5 deletions tests/sandbox/person/test_sandbox_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_api_endpoint_sandbox_search_query(client_sandbox_enabled):
"query": {
"bool": {
"must": [
{"term": {"location_country": "mexico"}},
{"term": {"location_country": "united states"}},
]
}
}
Expand All @@ -55,7 +55,7 @@ def test_api_endpoint_sandbox_search_sql(client_sandbox_enabled):
"""
Tests successful execution of search API by SQL query.
"""
sql_query = "SELECT * FROM person WHERE location_country='mexico';"
sql_query = "SELECT * FROM person WHERE location_country='united states';"
data = {
"sql": sql_query,
"size": 10,
Expand All @@ -77,12 +77,12 @@ def test_api_endpoint_sandbox_search_both_queries_raises_validation_error(
"query": {
"bool": {
"must": [
{"term": {"location_country": "mexico"}},
{"term": {"location_country": "united states"}},
]
}
}
}
sql_query = "SELECT * FROM person WHERE location_country='mexico';"
sql_query = "SELECT * FROM person WHERE location_country='united states';"
data = {
"query": es_query,
"sql": sql_query,
Expand All @@ -104,7 +104,7 @@ def test_api_endpoint_sandbox_search_invalid_dataset_raises_validation_error(
"query": {
"bool": {
"must": [
{"term": {"location_country": "mexico"}},
{"term": {"location_country": "united states"}},
]
}
}
Expand Down