File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 34
34
35
35
- name : Pylint Source
36
36
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 34
34
35
35
- name : Run Tests
36
36
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 6
6
7
7
def test_version_found ():
8
8
""" 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' )
10
11
assert get_version () == '1.0.0'
11
12
assert mock_get_distribution .called
12
13
13
14
def test_version_not_found ():
14
15
""" 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
16
18
assert get_version () == 'unknown'
17
19
assert mock_get_distribution .called
You can’t perform that action at this time.
0 commit comments