Skip to content
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
2 changes: 0 additions & 2 deletions generated/openapi_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def __call_api(
_check_type: typing.Optional[bool] = None,
_content_type: typing.Optional[str] = None,
):

config = self.configuration

# header parameters
Expand Down Expand Up @@ -780,7 +779,6 @@ def __call__(self, *args, **kwargs):
return self.callable(self, *args, **kwargs)

def call_with_http_info(self, **kwargs):

try:
index = (
self.api_client.configuration.server_operation_index.get(
Expand Down
1 change: 0 additions & 1 deletion generated/openapi_client/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,6 @@ def get_allof_instances(self, model_args, constant_args):
"""
composed_instances = []
for allof_class in self._composed_schemas["allOf"]:

try:
if constant_args.get("_spec_property_naming"):
allof_instance = allof_class._from_openapi_data(**model_args, **constant_args)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "groundlight"
version = "0.6.3"
version = "0.6.4"
license = "MIT"
readme = "UserGuide.md"
homepage = "https://groundlight.ai"
Expand All @@ -18,6 +18,7 @@ urllib3 = "^1.26.9"
frozendict = "^2.3.2"
certifi = "^2021.10.8"
pydantic = "^1.7.4"
requests = "^2.28.2"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
Expand Down
8 changes: 5 additions & 3 deletions test/integration/test_groundlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ def test_create_detector(gl: Groundlight):


def test_create_detector_with_config_name(gl: Groundlight):
name = f"Test b4mu11-mlp {datetime.utcnow()}" # Need a unique name
query = "Test query with b4mu11-mlp?"
config_name = "b4mu11-mlp"
# "never-review" is a special model that always returns the same result with 100% confidence.
# It's useful for testing.
name = f"Test never-review {datetime.utcnow()}" # Need a unique name
query = "Test query with never-review?"
config_name = "never-review"
_detector = gl.create_detector(name=name, query=query, config_name=config_name)
assert str(_detector)
assert isinstance(_detector, Detector)
Expand Down
8 changes: 8 additions & 0 deletions test/unit/test_imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pylint: disable=unused-import, import-outside-toplevel
# flake8: noqa: F401


def test_imports():
"""Test that all modules can be imported."""
import groundlight
from groundlight import ApiException, Groundlight, binary_labels, client, config, images, internalapi