Skip to content

Commit 4947843

Browse files
committed
don't hardcode the version of python
1 parent ee0f9f4 commit 4947843

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vetiver/tests/test_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from vetiver import mock, VetiverModel, VetiverAPI
22
from fastapi.testclient import TestClient
33
import pytest
4+
import sys
45

56

67
@pytest.fixture
@@ -43,5 +44,5 @@ def test_get_metadata(client):
4344
"version": None,
4445
"url": None,
4546
"required_pkgs": ["scikit-learn"],
46-
"python_version": [3, 9, 11, "final", 0],
47+
"python_version": list(sys.version_info), # JSON will return a list
4748
}

0 commit comments

Comments
 (0)