Skip to content

Commit

Permalink
Remove unecessary numpy dependency in client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 5, 2024
1 parent 149675d commit bddd300
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/server/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Optional

import httpx
import numpy as np
import pytest

from optimade.client.cli import _get
Expand Down Expand Up @@ -519,9 +518,13 @@ def test_list_properties(


@pytest.mark.parametrize(
"trial_counts", [1, 2] + [int(x) for x in np.logspace(1, 10, 102)]
"trial_counts", [1, 2] + [int(10 ** (9 * (1 + n) / 100)) for n in range(100)]
)
def test_binary_search_internals(trial_counts):
"""Test that the internal binary search algorithm converges to the correct value
across a logspace (including edge cases 1 and 2) up to 10**9.
"""
cli = OptimadeClient(
base_urls=TEST_URLS,
)
Expand Down

0 comments on commit bddd300

Please sign in to comment.