1+ """Tests for the ``tasks.py`` file."""
2+
13from tasks import _get_minimum_versions
24
35
46def test_get_minimum_versions ():
57 """Test the ``_get_minimum_versions`` method.
8+
69 The method should return the minimum versions of the dependencies for the given python version.
710 If a library is linked to an URL, the minimum version should be the URL.
811 """
@@ -13,7 +16,7 @@ def test_get_minimum_versions():
1316 "pandas>=1.2.0,<2;python_version<'3.10'" ,
1417 "pandas>=1.3.0,<2;python_version>='3.10'" ,
1518 'humanfriendly>=8.2,<11' ,
16- 'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas'
19+ 'pandas @ git+https://github.com/pandas-dev/pandas.git@master' ,
1720 ]
1821
1922 # Run
@@ -23,12 +26,12 @@ def test_get_minimum_versions():
2326 # Assert
2427 expected_versions_39 = [
2528 'numpy==1.20.0' ,
26- 'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas' ,
29+ 'git+https://github.com/pandas-dev/pandas.git@master#egg=pandas' ,
2730 'humanfriendly==8.2' ,
2831 ]
2932 expected_versions_310 = [
3033 'numpy==1.23.3' ,
31- 'pandas @ git+https://github.com/pandas-dev/pandas.git@master#egg=pandas' ,
34+ 'git+https://github.com/pandas-dev/pandas.git@master#egg=pandas' ,
3235 'humanfriendly==8.2' ,
3336 ]
3437
0 commit comments