File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434
3535 - name : Pylint Source
3636 run : |
37- find . -type f -name '*.py' | xargs pylint --extension-pkg-whitelist='pydantic'
37+ find . -type f -name '*.py' | grep -v './build/' | xargs pylint --extension-pkg-whitelist='pydantic'
Original file line number Diff line number Diff line change 3434
3535 - name : Run Tests
3636 run : |
37- pytest --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=100 -W error -p no:cacheprovider -p no:unraisableexception
37+ pytest --ignore=build -- timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=100 -W error -p no:cacheprovider -p no:unraisableexception
Original file line number Diff line number Diff line change 66
77def test_version_found ():
88 """ Test that the version is found """
9- with patch ('runpod.version.get_distribution' , return_value = Mock (version = '1.0.0' )) as mock_get_distribution :
9+ with patch ('runpod.version.get_distribution' ) as mock_get_distribution :
10+ mock_get_distribution .return_value = Mock (version = '1.0.0' )
1011 assert get_version () == '1.0.0'
1112 assert mock_get_distribution .called
1213
1314def test_version_not_found ():
1415 """ Test that the version is not found """
15- with patch ('runpod.version.get_distribution' , side_effect = DistributionNotFound ) as mock_get_distribution :
16+ with patch ('runpod.version.get_distribution' ) as mock_get_distribution :
17+ mock_get_distribution .side_effect = DistributionNotFound
1618 assert get_version () == 'unknown'
1719 assert mock_get_distribution .called
You can’t perform that action at this time.
0 commit comments