Skip to content

Commit f385d6d

Browse files
authored
Merge pull request #2633 from fractal-analytics-platform/fix-test-fractal-tasks-core
Fix `test_unit_pypi_version`
2 parents 4bd1e75 + b20bf34 commit f385d6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/v2/test_03_api/test_unit_pypi_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ async def test_get_package_version_from_pypi():
2222
# Success: Provide incomplete version
2323
version = await get_package_version_from_pypi(PKG, version="1.2")
2424
debug(version)
25-
assert version == "1.2.1"
25+
assert version == "1.2.2"
2626

2727
# Success: Provide weird incomplete version
2828
version = await get_package_version_from_pypi(PKG, version="1.2.")
2929
debug(version)
30-
assert version == "1.2.1"
30+
assert version == "1.2.2"
3131

3232
# Success: Check that fractal-tasks-core version is something like `a.b.c`
3333
actual_latest_version = await get_package_version_from_pypi(PKG)
@@ -50,7 +50,7 @@ async def test_get_package_version_from_pypi_failures(monkeypatch):
5050

5151
# Failure 2: invalid incomplete version
5252
with pytest.raises(HTTPException, match="No version starting"):
53-
await get_package_version_from_pypi(PKG, version="1.2.2")
53+
await get_package_version_from_pypi(PKG, version="1.2.3")
5454

5555
# Failure 3: KeyError due to unexpected response (200, with wrong data)
5656
async def _patched_get_1(*args, **kwargs):

0 commit comments

Comments
 (0)