Skip to content

Commit

Permalink
fixed broken tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
  • Loading branch information
Kharude, Sachin authored and sackh committed Feb 15, 2021
1 parent 06bd70a commit 7c2ca73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/features/pr.113.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support custom base URL of Data Hub APIs for self-hosted Data Hub.
2 changes: 1 addition & 1 deletion tests/hub/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_get_space_tile_sampling(api):
len_viz_low = len(tile_viz_low["features"])
len_viz_med = len(tile_viz_med["features"])
len_viz_high = len(tile_viz_high["features"])
assert len_raw > len_viz_off > len_viz_low > len_viz_med >= len_viz_high
assert len_raw > len_viz_off >= len_viz_low > len_viz_med >= len_viz_high


@pytest.mark.skipif(not XYZ_TOKEN, reason="No token found.")
Expand Down
2 changes: 1 addition & 1 deletion tests/space/test_space_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,4 +876,4 @@ def test_get_space_tile_sampling(api):
len_viz_low = len(tile_viz_low)
len_viz_med = len(tile_viz_med)
len_viz_high = len(tile_viz_high)
assert len_raw > len_viz_off > len_viz_low > len_viz_med >= len_viz_high
assert len_raw > len_viz_off >= len_viz_low > len_viz_med >= len_viz_high
2 changes: 1 addition & 1 deletion xyzspaces/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Space:
"""

@classmethod
def from_id(cls, space_id: str, server: str = XYZ_BASE_URL,) -> "Space":
def from_id(cls, space_id: str, server: str = XYZ_BASE_URL) -> "Space":
"""Instantiate a space object for an existing space ID.
:param space_id: A string to represent the id of the space.
Expand Down

0 comments on commit 7c2ca73

Please sign in to comment.