Fix test_main.py
@@ -108,16 +108,16 @@ async def test_versions_handler(app):
assert r.status_code == 200
data = r.json()
- # Version is different for KubernetesExecutor and LocalRepo2dockerBuild
+ # builder_info is different for KubernetesExecutor and LocalRepo2dockerBuild
try:
import repo2docker
- allowed_versions = [repo2docker.__version__]
+ allowed_builder_info = [{"repo2docker-version": repo2docker.__version__}]
except ImportError:
- allowed_versions = []
- allowed_versions.append(app.build_image)
+ allowed_builder_info = []
+ allowed_builder_info.append({"build_image": app.build_image})
- assert data["builder"] in allowed_versions
+ assert data["builder_info"] in allowed_builder_info
assert data["binderhub"].split("+")[0] == binder_version.split("+")[0]
