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

Even more spring cleaning #125

Merged
merged 5 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
test: Reduce line length on some occasions
  • Loading branch information
bahlo committed Sep 9, 2024
commit 661e5c168c3bd31daab2f8c5af7ca2190ba24024
5 changes: 4 additions & 1 deletion tests/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def setUpClass(cls):
cls.client.datasets.create(req)

def test_happy_path_crud(self):
"""Test the happy path of creating, reading, updating, and deleting an annotation."""
"""
Test the happy path of creating, reading, updating, and deleting an
annotation.
"""
# Create annotation
req = AnnotationCreateRequest(
datasets=[self.dataset_name],
Expand Down
3 changes: 2 additions & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def test_step001_ingest(self):
opts = IngestOptions(
"_time",
"2/Jan/2006:15:04:05 +0000",
# CSV_delimiter obviously not valid for JSON, but perfectly fine to test for its presence in this test.
# CSV_delimiter obviously not valid for JSON, but perfectly fine to
# test for its presence in this test.
";",
)
res = self.client.ingest(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def test_step999_delete(self):
f"expected test dataset (%{self.dataset_name}) to be deleted",
)
except HTTPError as err:
# the get method returns 404 error if dataset doesn't exist, so that means
# that our tests passed, otherwise, it should fail.
# the get method returns 404 error if dataset doesn't exist, so
# that means that our tests passed, otherwise, it should fail.
if err.response.status_code != 404:
self.fail(err)

Expand Down