Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 0.10.19_preview / 2025-10-23

- Fixed issue where event type property Uom and description fields are swapped
- Fixed failing tests
- Updated requirements for tests

## 0.10.18_preview / 2025-07-30

Expand Down
6 changes: 3 additions & 3 deletions adh_sample_library_preview/Tests/test_baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def test_check_response_error_response(baseClient):

def test_validate_parameters_raises_error(baseClient):
with pytest.raises(TypeError):
baseClient.validateParameters('good', 'gooder', None)
baseClient.validateRequiredParameters('good', 'gooder', None)

with pytest.raises(TypeError):
baseClient.validateParameters('good', 'gooder', [])
baseClient.validateRequiredParameters('good', 'gooder', [])


def test_validate_parameters_valid(baseClient):
baseClient.validateParameters('good', 'gooder', 'goodest')
baseClient.validateRequiredParameters('good', 'gooder', 'goodest')
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ jobs:
buildSteps:
- script: |
echo Install tools
call pip install wheel
call pip install twine
pip install wheel
pip install twine
echo Build library
call python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel
echo Install library
pip install .
echo Complete
displayName: 'Build'

Expand All @@ -63,10 +65,8 @@ jobs:
secrets: 'TenantId, NamespaceId, ClientId, ClientSecret, Resource'

- script: |
echo Install test tools
pip install pytest
echo Install requirements
pip install -r requirements.txt
echo Install requirements for tests
pip install ".[test]"
echo Run tests
cd ./adh_sample_library_preview/Tests
python -m pytest --junitxml=junit/test-results-baseclient.xml test_baseclient.py --e2e True
Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
'python-dateutil>=2.8.2',
'jsonpatch>=1.32'
],
tests_require = [
'pytest>=7.0.1',
],
extras_require={
'test': [
'pytest>=7.0.1',
]
},
python_requires='>=3.7',
classifiers=[
'Programming Language :: Python :: 3',
Expand Down