Skip to content

Commit

Permalink
Update test_rest_api_spec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saimedhi authored Mar 13, 2024
1 parent d513248 commit 0cb86f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_opensearchpy/test_server/test_rest_api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,12 @@ def run_skip(self, skip: Any) -> Any:
if version == "all":
pytest.skip(reason)
min_version, max_version = version.split("-")
print("_get_version(min_version)", _get_version(min_version))
print("_get_version(max_version)", _get_version(max_version))
min_version = _get_version(min_version) or (0,)
max_version = _get_version(max_version) or (999,)
print("min_version", min_version)
print("max_version", max_version)
if min_version <= (self.opensearch_version()) <= max_version:
pytest.skip(reason)

Expand Down

0 comments on commit 0cb86f6

Please sign in to comment.