diff --git a/ChangeLog.md b/ChangeLog.md index 7ca701b..15c44a3 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [unreleased] - 2024-11-01 +## [v0.3.12] - 2024-11-22 ### Added - Added pre-commit hooks and Github CI action for code formatting and linting. - Added MyPy with strict settings to enforce type hints (and Github CI action). +- Added `pytest-randomly` to shuffle test order ## [v0.3.11] - 2024-11-01 ### Fixed diff --git a/learnosity_sdk/_version.py b/learnosity_sdk/_version.py index 1f8f12d..8d0ba10 100644 --- a/learnosity_sdk/_version.py +++ b/learnosity_sdk/_version.py @@ -1 +1 @@ -__version__ = 'v0.3.11' +__version__ = 'v0.3.12' diff --git a/setup.py b/setup.py index f175d54..52f531f 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ 'pytest >=4.6.6', 'pytest-cov >=2.8.1', 'pytest-subtests', + 'pytest-randomly', 'responses >=0.8.1', 'types-requests', 'types-Jinja2', diff --git a/tests/integration/test_dataapi.py b/tests/integration/test_dataapi.py index e6b08fe..7693ae3 100644 --- a/tests/integration/test_dataapi.py +++ b/tests/integration/test_dataapi.py @@ -103,8 +103,9 @@ def test_real_question_request(self) -> None: """Make a request against Data Api to ensure the SDK works""" client = DataApi() - questions_request['limit'] = 3 - res = client.request(self.__build_base_url() + questions_endpoint, security, consumer_secret, questions_request, + local_questions_request = questions_request.copy() + local_questions_request['limit'] = 3 + res = client.request(self.__build_base_url() + questions_endpoint, security, consumer_secret, local_questions_request, action) returned_json = res.json()