Skip to content

Commit

Permalink
Merge branch 'dev' into dependabot/pip/pip-f8e74f74f3
Browse files Browse the repository at this point in the history
  • Loading branch information
brendancsmith committed Sep 5, 2024
2 parents cc97515 + d081022 commit c65a12b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/clients/test_enhance_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/clients/test_search_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c65a12b

Please sign in to comment.