From 402e805b69d6e851863011a4ba925667b796714c Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Fri, 26 Apr 2024 17:51:31 -0500 Subject: [PATCH 1/5] test: replace "limit" param with "size" in tests --- tests/unit/clients/test_enhance_client.py | 4 ++-- tests/unit/clients/test_search_client.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/clients/test_enhance_client.py b/tests/unit/clients/test_enhance_client.py index 1db34c4..0097850 100644 --- a/tests/unit/clients/test_enhance_client.py +++ b/tests/unit/clients/test_enhance_client.py @@ -17,7 +17,7 @@ async def test_mocked_enhance(self, mocker, client): # ARRANGE # Define the search query parameters - params = {"query": "your_search_query", "limit": 10} + params = {"query": "your_search_query", "size": 10} # Mock the _post_or_put method mocker.patch.object( @@ -43,7 +43,7 @@ async def test_mocked_create_bulkjob(self, mocker, client): # ARRANGE # Define the search query parameters - params = {"query": "your_bulk_enhance_query", "limit": 10} + params = {"query": "your_bulk_enhance_query", "size": 10} # Mock the _post_or_put method mocker.patch.object( diff --git a/tests/unit/clients/test_search_client.py b/tests/unit/clients/test_search_client.py index aa055ae..9624a95 100644 --- a/tests/unit/clients/test_search_client.py +++ b/tests/unit/clients/test_search_client.py @@ -19,7 +19,7 @@ async def test_mocked_search(self, mocker, client): # ARRANGE # Define the search query parameters - params = {"query": "your_search_query", "limit": 10} + params = {"query": "your_search_query", "size": 10} # Mock the _post_or_put method mocker.patch.object( From 771640b918375fa24ce065293b4ccc8758f351dc Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Fri, 26 Apr 2024 17:53:18 -0500 Subject: [PATCH 2/5] build: bump version to 0.2.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0e401b1..2a9e4ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "diffbot-kg" -version = "0.2.1" +version = "0.2.2" description = "Python client for the Diffbot Knowledge Graph API." authors = ["Brendan C. Smith"] license = "MIT" From d081022202b19d524e82e75a97520304a4b340ad Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Fri, 26 Apr 2024 18:56:19 -0500 Subject: [PATCH 3/5] chore: add launch and task configurations --- .vscode/launch.json | 23 +++++++++++++++++++++++ .vscode/tasks.json | 17 +++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..171936b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + }, + { + "name": "Python: Run Functional Tests (From Scratch)", + "type": "debugpy", + "request": "launch", + "program": "pytest", + "console": "integratedTerminal", + "env": { + "PYTEST_CASSETTES_DIR": "${workspaceFolder}/tests/cassettes" + }, + "preLaunchTask": "delete_cassettes" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..98394f0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "delete_cassettes", + "type": "shell", + "command": "rm", + "args": ["-rf", "${workspaceFolder}/tests/**/cassettes/*.yaml"], + "problemMatcher": { + "base": "$tsc-watch", + "applyTo": "allDocuments" + } + } + ] +} From cc975153dd68fed1f2737fac769305c0b5c0664e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 01:40:39 +0000 Subject: [PATCH 4/5] chore(deps-dev): bump urllib3 in the pip group across 1 directory Bumps the pip group with 1 update in the / directory: [urllib3](https://github.com/urllib3/urllib3). Updates `urllib3` from 1.26.18 to 1.26.19 - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/1.26.19/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.26.18...1.26.19) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect dependency-group: pip ... Signed-off-by: dependabot[bot] --- poetry.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0a7af1b..87acce5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -569,13 +569,13 @@ doc = ["reno", "sphinx", "tornado (>=4.5)"] [[package]] name = "urllib3" -version = "1.26.18" +version = "1.26.19" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ - {file = "urllib3-1.26.18-py2.py3-none-any.whl", hash = "sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07"}, - {file = "urllib3-1.26.18.tar.gz", hash = "sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0"}, + {file = "urllib3-1.26.19-py2.py3-none-any.whl", hash = "sha256:37a0344459b199fce0e80b0d3569837ec6b6937435c5244e7fd73fa6006830f3"}, + {file = "urllib3-1.26.19.tar.gz", hash = "sha256:3e3d753a8618b86d7de333b4223005f68720bcd6a7d2bcb9fbd2229ec7c1e429"}, ] [package.extras] From 553b81deac0712045629ee1de4f3166cd8f4112e Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Thu, 5 Sep 2024 14:12:41 -0500 Subject: [PATCH 5/5] chore(deps-dev): bump version to 0.2.3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2a9e4ba..ec66a23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "diffbot-kg" -version = "0.2.2" +version = "0.2.3" description = "Python client for the Diffbot Knowledge Graph API." authors = ["Brendan C. Smith"] license = "MIT"