17 lines
528 B
Python
17 lines
528 B
Python
import json
|
|
from pathlib import Path
|
|
|
|
|
|
def get_version_request_values():
|
|
version_data = []
|
|
fixture_dir = Path(__file__).parent
|
|
for file in fixture_dir.glob("request_values_*.json"):
|
|
with open(file, "r") as f:
|
|
version_data.extend(json.loads(f.read())["results"])
|
|
version_data.sort(key=lambda v: v["version"], reverse=True)
|
|
return version_data
|
|
|
|
# Singleton instance to be used in tests
|
|
# All extension version information ordered by version descending
|
|
values = get_version_request_values()
|